packages/@neet/vschedule-api/src/infra/services/youtube-api-service.ts
Function fetchVideo
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async fetchVideo(videoId: string): Promise<Video> {
const videos = await this._yt.videos.list({
id: [videoId],
// part: ['snippet', 'contentDetails', 'statistics', 'liveStreamingDetails'],
part: [
Consider simplifying this complex logical expression. Open
Open
if (
video.id == null ||
video.snippet == null ||
video.snippet.title == null ||
video.snippet.channelId == null ||