[web-src] Fix linting errors

This commit is contained in:
chme
2021-01-10 07:51:50 +01:00
parent 4f5e736b6b
commit cdc7d7a1da
11 changed files with 34 additions and 34 deletions

View File

@@ -64,7 +64,7 @@ export default new Vuex.Store({
getters: {
now_playing: state => {
var item = state.queue.items.find(function (item) {
const item = state.queue.items.find(function (item) {
return item.id === state.player.item_id
})
return (item === undefined) ? {} : item
@@ -167,7 +167,7 @@ export default new Vuex.Store({
},
[types.ADD_NOTIFICATION] (state, notification) {
if (notification.topic) {
var index = state.notifications.list.findIndex(elem => elem.topic === notification.topic)
const index = state.notifications.list.findIndex(elem => elem.topic === notification.topic)
if (index >= 0) {
state.notifications.list.splice(index, 1, notification)
return
@@ -183,7 +183,7 @@ export default new Vuex.Store({
}
},
[types.ADD_RECENT_SEARCH] (state, query) {
var index = state.recent_searches.findIndex(elem => elem === query)
const index = state.recent_searches.findIndex(elem => elem === query)
if (index >= 0) {
state.recent_searches.splice(index, 1)
}