prettier code

This commit is contained in:
killer069
2021-12-14 15:01:10 +05:30
parent 2974efdebc
commit af5a418d09
5 changed files with 258 additions and 255 deletions

View File

@@ -94,7 +94,7 @@ export class YouTubePlayList {
this.views = data.views || 0;
this.link = data.link || undefined;
this.channel = new YouTubeChannel(data.channel) || undefined;
this.thumbnail = (data.thumbnail) ? new YouTubeThumbnail(data.thumbnail) : undefined;
this.thumbnail = data.thumbnail ? new YouTubeThumbnail(data.thumbnail) : undefined;
this.videos = data.videos || [];
this.__count++;
this.fetched_videos.set(`${this.__count}`, this.videos as YouTubeVideo[]);