From a188b6caaf4d429c7d0c88c4acbf77ad32557c4d Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 3 Mar 2016 16:29:16 -0800 Subject: [PATCH] torrent-list: client always exists now --- main/views/torrent-list.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main/views/torrent-list.js b/main/views/torrent-list.js index dec3726f..9d66e9c9 100644 --- a/main/views/torrent-list.js +++ b/main/views/torrent-list.js @@ -4,11 +4,7 @@ var h = require('virtual-dom/h') var prettyBytes = require('pretty-bytes') function TorrentList (state, dispatch) { - var torrents = state.view.client - ? state.view.client.torrents - : [] - - var list = torrents.map(function (torrent) { + var list = state.view.client.torrents.map(function (torrent) { var style = {} if (torrent.posterURL) { style['background-image'] = 'linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%), url("' + torrent.posterURL + '")'