Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.

Commit 8d5b90e

Browse files
author
Hugo Vieilledent
committed
fix linting, contribute to git history
1 parent 56226da commit 8d5b90e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

v1/firebase/adapter.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ function apiGetChannel(channelId) {
4747
function apiGetChannelTracks(channelId) {
4848
return apiQuery('tracks', 'channel', channelId).then(snapshot => {
4949
var tracks = snapshot.val();
50-
if(!tracks) return []
50+
if (!tracks) {
51+
return [];
52+
}
5153
var serializedTracks = Object.keys(tracks).map(trackId => serializeTrack(tracks[trackId], trackId));
5254
return serializedTracks;
5355
});

0 commit comments

Comments
 (0)