Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Removed last , from arrays #37

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/formatters/moduleNotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function dependenciesNotFound (dependencies) {
'',
dependencies.map(formatGroup),
'',
forgetToInstall(dependencies),
forgetToInstall(dependencies)
);
}

Expand All @@ -45,7 +45,7 @@ function relativeModulesNotFound (modules) {
return concat(
modules.length === 1 ? 'This relative module was not found:' : 'These relative modules were not found:',
'',
modules.map(formatGroup),
modules.map(formatGroup)
);
}

Expand All @@ -62,7 +62,7 @@ function groupModules (errors) {
return Array.from(missingModule.keys()).map(module => ({
module: module,
relative: isRelative(module),
errors: missingModule.get(module),
errors: missingModule.get(module)
}));
}

Expand All @@ -79,7 +79,7 @@ function formatErrors (errors) {
return concat(
dependenciesNotFound(dependencies),
dependencies.length && relativeModules.length ? ['', ''] : null,
relativeModulesNotFound(relativeModules),
relativeModulesNotFound(relativeModules)
);
}

Expand Down