packages/app/app/actions/playlists.ts
Function addPlaylistFromFile
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;