From ef098c47ac20473dd19e9fcc8584689cdbd422b7 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 19 Aug 2015 13:29:01 +1000 Subject: [PATCH] Needlessly convoluted --- torrent.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/torrent.go b/torrent.go index bb8465df..d1034f82 100644 --- a/torrent.go +++ b/torrent.go @@ -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) { -- 2.48.1