Implement cvium's code clarity suggestion

This commit is contained in:
Sparky 2019-02-07 08:20:10 -05:00
parent 77a23c74d9
commit 789eed49af

View File

@ -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
});
}