fix if statement in `cmd/torrent/main.go` (#349)
This commit is contained in:
parent
f15aa27e24
commit
6e95274413
|
@ -100,7 +100,9 @@ func addTorrents(client *torrent.Client) error {
|
|||
return nil, xerrors.Errorf("error loading torrent file %q: %s\n", arg, err)
|
||||
}
|
||||
t, err := client.AddTorrent(metaInfo)
|
||||
return nil, xerrors.Errorf("adding torrent: %w", err)
|
||||
if err != nil {
|
||||
return nil, xerrors.Errorf("adding torrent: %w", err)
|
||||
}
|
||||
return t, nil
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue