Skip to content

Commit

Permalink
🚨 chore: Apply fixes from CodeFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kms0219kms authored May 19, 2024
2 parents e4c8cc6 + d5f5efd commit e773089
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/songs/songs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ export class SongsService {

// artTrack이 0이나 빈 문자열로 날라오는 경우 대비
music.videos.artTrack =
music.videos.artTrack === '0' ||
music.videos.artTrack === ''
music.videos.artTrack === '0' || music.videos.artTrack === ''
? null
: music.videos.artTrack;

// 장르, 키워드가 빈 문자열로 날라오는 경우 대비
music.genres = music.genres.filter((g) => g !== '');
music.keywords = music.keywords.filter((k) => k !== '');
Expand Down

0 comments on commit e773089

Please sign in to comment.