go vet
This commit is contained in:
parent
0d13293d71
commit
0863f8ba2c
|
@ -41,7 +41,7 @@ func TestParseMagnetURI(t *testing.T) {
|
|||
// Checking if the magnet instance struct is built correctly from parsing
|
||||
m, err = ParseMagnetURI(exampleMagnetURI)
|
||||
if err != nil || !reflect.DeepEqual(exampleMagnet, m) {
|
||||
t.Errorf("ParseMagnetURI(%e) returned %v, expected %v", uri, m, exampleMagnet)
|
||||
t.Errorf("ParseMagnetURI(%s) returned %v, expected %v", uri, m, exampleMagnet)
|
||||
}
|
||||
|
||||
// empty string URI case
|
||||
|
|
|
@ -421,7 +421,7 @@ func (t *torrent) writeStatus(w io.Writer) {
|
|||
}
|
||||
fmt.Fprintf(w, "Urgent:")
|
||||
for req := range t.urgent {
|
||||
fmt.Fprintf(w, " %s", req)
|
||||
fmt.Fprintf(w, " %v", req)
|
||||
}
|
||||
fmt.Fprintln(w)
|
||||
fmt.Fprintf(w, "Trackers: ")
|
||||
|
|
Loading…
Reference in New Issue