cmd/index/main.go | 2 +- diff --git a/cmd/index/main.go b/cmd/index/main.go index 69a2ff1f6a863f8a75472604ac8ec5cfec5d04ff2f2b393fb2741dcf894448bf..e7011a74078268f68cf0f48c602ed2abd02550e1069bd4f3d5c57c913482e914 100644 --- a/cmd/index/main.go +++ b/cmd/index/main.go @@ -94,7 +94,7 @@ } if torrent.Size == 0 { panic("empty size") } - if bytes.Compare(torrent.Hash[:], emptyHash) == 0 { + if bytes.Equal(torrent.Hash[:], emptyHash) { panic("empty hash") } if *doCSV {