nukeop/nuclear

View on GitHub
packages/core/src/rest/SponsorBlock.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function getSegments has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function getSegments (videoID: VideoID, categories?: Category[]): Promise<Segment[]> {
  let query = `?videoID=${videoID}`;

  if (!categories) {
    query += `&categories=${JSON.stringify(ALL_CATEGORIES)}`;
Severity: Minor
Found in packages/core/src/rest/SponsorBlock.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status