Skip to content

Commit

Permalink
Fixed eslint error.
Browse files Browse the repository at this point in the history
Must remember to tox.
  • Loading branch information
kingosticks committed Mar 11, 2017
1 parent 4f1ffbb commit 6ae9a16
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mopidy_musicbox_webclient/static/js/functionsvars.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ function isStreamUri (uri) {
}

function getMediaClass (track) {
var default_icon = 'fa-file-sound-o'
var defaultIcon = 'fa-file-sound-o'
var type = track.type
if (typeof type === 'undefined' || type === 'track') {
if (!isPlayable(track)) {
Expand All @@ -525,13 +525,12 @@ function getMediaClass (track) {
return 'fa fa-folder-o'
} else if (type === 'album') {
// return 'fa fa-bullseye' // Album
default_icon = 'fa-folder-o'
defaultIcon = 'fa-folder-o'
} else if (type === 'artist') {
// return 'fa fa-user-circle-o' // Artist
default_icon = 'fa-folder-o'
defaultIcon = 'fa-folder-o'
} else if (type === 'playlist') {
// return 'fa fa-star' // Playlist
//return ''
}
if (track.uri) {
var scheme = getScheme(track.uri)
Expand All @@ -540,7 +539,7 @@ function getMediaClass (track) {
return 'fa ' + uriClassList[i][1]
}
}
return 'fa ' + default_icon
return 'fa ' + defaultIcon
}
return ''
}
Expand Down

0 comments on commit 6ae9a16

Please sign in to comment.