From 789eed49af578b3e3b91e5d6b829bf0d2c32d4d1 Mon Sep 17 00:00:00 2001 From: Sparky Date: Thu, 7 Feb 2019 08:20:10 -0500 Subject: [PATCH] Implement cvium's code clarity suggestion --- src/components/remotecontrol.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/remotecontrol.js b/src/components/remotecontrol.js index 5e644150d..5433af6a3 100644 --- a/src/components/remotecontrol.js +++ b/src/components/remotecontrol.js @@ -509,13 +509,7 @@ define(["browser", "datetime", "backdrop", "libraryBrowser", "listView", "imageL function getSaveablePlaylistItems() { return getPlaylistItems(currentPlayer).then(function (items) { - return items.filter(function (i) { - if (i.Id) { - return i.ServerId; - } - - return false; - }); + return i.Id && i.ServerId }); }