]> Sergey Matveev's repositories - btrtrc.git/blobdiff - misc.go
cmd/btrtrc client
[btrtrc.git] / misc.go
diff --git a/misc.go b/misc.go
index 8f82c2a0f2f066ada064e9204720fb480363a7c1..7d3007ecee74eb92f58eee434dfb9431a86f9098 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -93,9 +93,7 @@ func validateInfo(info *metainfo.Info) error {
                if info.TotalLength() != 0 {
                        return errors.New("zero piece length")
                }
-       } else if !info.HasV2() {
-               // TotalLength returns different values for V1 and V2 depending on whether v1 pad files are
-               // counted. Split the interface into several methods?
+       } else {
                if int((info.TotalLength()+info.PieceLength-1)/info.PieceLength) != info.NumPieces() {
                        return errors.New("piece count and file lengths are at odds")
                }