diff --git a/.eslintrc.js b/.eslintrc.js index 560c417763..0594b954e1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -75,7 +75,6 @@ module.exports = { 'sonarjs/no-collapsible-if': ['off'], 'sonarjs/no-duplicate-string': ['off'], 'sonarjs/no-duplicated-branches': ['off'], - 'sonarjs/no-gratuitous-expressions': ['off'], 'sonarjs/no-identical-functions': ['off'], 'sonarjs/no-nested-switch': ['off'], 'sonarjs/no-redundant-jump': ['off'], diff --git a/src/controllers/dashboard/dashboard.js b/src/controllers/dashboard/dashboard.js index a6fe46b295..de722c751c 100644 --- a/src/controllers/dashboard/dashboard.js +++ b/src/controllers/dashboard/dashboard.js @@ -458,7 +458,7 @@ import confirm from '../../components/confirm/confirm'; html += ' / '; - if (nowPlayingItem && nowPlayingItem.RunTimeTicks) { + if (nowPlayingItem.RunTimeTicks) { html += datetime.getDisplayRunningTime(nowPlayingItem.RunTimeTicks); } else { html += '0:00';