Skip to content

Commit

Permalink
fix eslint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
kingosticks committed Mar 22, 2020
1 parent e60281a commit 5b786aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mopidy_musicbox_webclient/static/js/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,12 @@
$('#controlsmodal').popup('close')
$(ARTIST_TABLE).empty()

if (!nwuri.length || nwuri == 'undefined') {
if (!nwuri.length || nwuri === 'undefined') {
return false
}

// TODO cache
// TODO cache

$('#h_artistname').html('')
showLoading(true)
mopidy.library.lookup({'uris': [nwuri]}).then(function (resultDict) {
Expand All @@ -298,7 +299,7 @@
$('#controlsmodal').popup('close')
$(ALBUM_TABLE).empty()

if (!uri.length || uri == 'undefined') {
if (!uri.length || uri === 'undefined') {
return false
}

Expand Down

0 comments on commit 5b786aa

Please sign in to comment.