nukeop/nuclear

View on GitHub
packages/app/app/actions/playlists.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function addPlaylistFromFile has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function addPlaylistFromFile(filePath, t) {
  return async dispatch => {
    if (!filePath || typeof filePath !== 'string') {
      dispatch(error(t('import-fail-title'), t('error-empty-data'), null, null));
      return;
Severity: Minor
Found in packages/app/app/actions/playlists.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status