From: Matt Joiner Date: Wed, 19 Aug 2015 03:29:01 +0000 (+1000) Subject: Needlessly convoluted X-Git-Tag: v1.0.0~1059 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ef098c47ac20473dd19e9fcc8584689cdbd422b7;p=btrtrc.git Needlessly convoluted --- 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) {