Skip to content

Commit b569bf4

Browse files
committed
format go files
1 parent 8b33e1c commit b569bf4

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

cmd/toru/search.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ func runSearch(cl *libtorrent.Client) error {
2222
return nil
2323
}
2424

25-
// if searchopts.Interactive {
26-
// return InteractiveSearch(cl)
27-
// }
28-
2925
// build the query
3026
if searchopts.Category != "" {
3127
s.Category = searchopts.Category

cmd/toru/stream.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,20 @@ func StreamTorrent(torfile string, cl *libtorrent.Client) (string, error) {
5959
}
6060
success.Success("Success!")
6161

62-
6362
torrentFiles := len(t.Files())
64-
var episode int
63+
var episode int
6564

6665
if torrentFiles != 1 {
6766
ep, _ := Prompt("Choose an episode")
68-
episode, err = strconv.Atoi(ep)
67+
episode, err = strconv.Atoi(ep)
6968
if err != nil {
7069
return "", errors.New("episode must be numeric")
7170
}
7271
if episode > torrentFiles {
7372
return "", errors.New("episode doesn't exist")
7473
}
7574
}
76-
75+
7776
link := cl.ServeTorrent(t, episode)
7877

7978
// consider deleting this as it sometimes conflicts with the fzf user interface

0 commit comments

Comments
 (0)