neet/refined-itsukara-link

View on GitHub
packages/@neet/vschedule-api/src/infra/services/youtube-api-service.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function fetchVideo has 58 lines of code (exceeds 25 allowed). Consider refactoring.
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

        if (
          video.id == null ||
          video.snippet == null ||
          video.snippet.title == null ||
          video.snippet.channelId == null ||

      There are no issues that match your filters.

      Category
      Status