Skip to content
Snippets Groups Projects
Commit d42cd343 authored by Winnie Hellmann's avatar Winnie Hellmann
Browse files

Removed return statements from prettier script

parent 4f6beb55
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -49,7 +49,7 @@ const stagedFiles =
if (stagedFiles) {
if (!stagedFiles.length || (stagedFiles.length === 1 && !stagedFiles[0])) {
console.log('No matching staged files.');
return;
process.exit(1);
}
console.log(`Matching staged Files : ${stagedFiles.length}`);
}
Loading
Loading
@@ -78,7 +78,7 @@ files = prettierIgnore.filter(files);
 
if (!files.length) {
console.log('No Files found to process with Prettier');
return;
process.exit(1);
}
 
console.log(`${shouldSave ? 'Updating' : 'Checking'} ${files.length} file(s)`);
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment