]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Needlessly convoluted
authorMatt Joiner <anacrolix@gmail.com>
Wed, 19 Aug 2015 03:29:01 +0000 (13:29 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 19 Aug 2015 03:29:01 +0000 (13:29 +1000)
torrent.go

index bb8465df591144ba5d77bb2acb3768e59232ae1f..d1034f82853ad6a27392d6de6ced669786f88597 100644 (file)
@@ -292,10 +292,7 @@ func (t *torrent) Name() string {
        if t.haveInfo() {
                return t.Info.Name
        }
-       if t.DisplayName != "" {
-               return t.DisplayName
-       }
-       return ""
+       return t.DisplayName
 }
 
 func (t *torrent) pieceState(index int) (ret PieceState) {