summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-07-09 09:53:23 +0000
committerWinnie Hellmann <winnie@gitlab.com>2018-07-09 09:53:23 +0000
commitd42cd343ca66aaebb8877c935d1754efcbaea09b (patch)
treec973bcb6ba8ee973926eee4b176f74ff31ad0166 /scripts
parent4f6beb5571f0bd920f0670a703be4274e7524f2f (diff)
downloadgitlab-ce-d42cd343ca66aaebb8877c935d1754efcbaea09b.tar.gz
Removed return statements from prettier script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/frontend/prettier.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/frontend/prettier.js b/scripts/frontend/prettier.js
index 6e4e36b9b2d..b66ba885701 100644
--- a/scripts/frontend/prettier.js
+++ b/scripts/frontend/prettier.js
@@ -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}`);
}
@@ -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)`);