Skip to content

Commit

Permalink
[web] Lint the source code
Browse files Browse the repository at this point in the history
  • Loading branch information
hacketiwack committed Mar 21, 2024
1 parent a34e14f commit 604b1d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 7 additions & 9 deletions web-src/src/pages/PageSearchSpotify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export default {
name: 'search-spotify',
query: {
query: this.$route.query.query,
type: type
type
}
})
},
Expand All @@ -446,8 +446,8 @@ export default {
return
}
this.query.query = this.search_query
this.search_param.limit = this.query.limit ? this.query.limit : PAGE_SIZE
this.search_param.offset = this.query.offset ? this.query.offset : 0
this.search_param.limit = this.query.limit ?? PAGE_SIZE
this.search_param.offset = this.query.offset ?? 0
this.$store.dispatch('add_recent_search', this.query.query)
this.search_all()
},
Expand All @@ -461,12 +461,10 @@ export default {
},
search_all() {
this.spotify_search().then((data) => {
this.tracks = data.tracks ? data.tracks : { items: [], total: 0 }
this.artists = data.artists ? data.artists : { items: [], total: 0 }
this.albums = data.albums ? data.albums : { items: [], total: 0 }
this.playlists = data.playlists
? data.playlists
: { items: [], total: 0 }
this.tracks = data.tracks ?? { items: [], total: 0 }
this.artists = data.artists ?? { items: [], total: 0 }
this.albums = data.albums ?? { items: [], total: 0 }
this.playlists = data.playlists ?? { items: [], total: 0 }
})
},
search_artists_next({ loaded }) {
Expand Down
4 changes: 1 addition & 3 deletions web-src/src/pages/PageSettingsOnlineServices.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ export default {
) {
return this.spotify.webapi_required_scope
.split(' ')
.filter(
(scope) => this.spotify.webapi_granted_scope.indexOf(scope) < 0
)
.filter((scope) => !this.spotify.webapi_granted_scope.includes(scope))
}
return []
},
Expand Down

0 comments on commit 604b1d3

Please sign in to comment.