Fix auto-fixable linter issues

This commit is contained in:
wvffle 2022-07-21 01:21:36 +00:00 committed by Georg Krause
commit bbdb3dcb9d
93 changed files with 249 additions and 224 deletions

View file

@ -71,7 +71,7 @@ const store: Module<State, RootState> = {
page_size: 50,
ordering: '-creation_date'
}
const promise = axios.get('favorites/tracks/all/', { params: params })
const promise = axios.get('favorites/tracks/all/', { params })
return promise.then((response) => {
logger.info('Fetched a batch of ' + response.data.results.length + ' favorites')
response.data.results.forEach((result: { track: string }) => {

View file

@ -110,7 +110,7 @@ export default createStore<RootState>({
mbid: track.mbid,
uploads: track.uploads,
listen_url: track.listen_url,
artist: artist,
artist,
album: {}
}
if (track.album) {
@ -119,7 +119,7 @@ export default createStore<RootState>({
title: track.album.title,
mbid: track.album.mbid,
cover: track.album.cover,
artist: artist
artist
}
}
return data

View file

@ -60,7 +60,7 @@ const store: Module<State, RootState> = {
commit('follows', { library: uuid, follow: null })
}, () => {
logger.info('Error while unsubscribing from library')
commit('follows', { library: uuid, follow: follow })
commit('follows', { library: uuid, follow })
})
}
},

View file

@ -139,7 +139,7 @@ const store: Module<State, RootState> = {
page_size: 100,
ordering: '-creation_date'
}
promise = axios.get('moderation/content-filters/', { params: params })
promise = axios.get('moderation/content-filters/', { params })
}
return promise.then((response) => {
logger.info('Fetched a batch of ' + response.data.results.length + ' filters')

View file

@ -34,7 +34,7 @@ const store: Module<State, RootState> = {
currentTime: 0,
errored: false,
bufferProgress: 0,
looping: 0
looping: 0
},
mutations: {
reset (state) {

View file

@ -96,7 +96,7 @@ const store: Module<State, RootState> = {
const total = tracks.length
tracks.forEach((track: Track, i: number) => {
const promise = dispatch('append', { track: track, index: index })
const promise = dispatch('append', { track, index })
index += 1
if (callback && i + 1 === total) {

View file

@ -86,7 +86,7 @@ const store: Module<State, RootState> = {
radio_type: type,
related_object_id: objectId,
custom_radio: customRadioId,
config: config
config
}
if (clientOnly) {