diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-07-09 09:53:23 +0000 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-07-09 09:53:23 +0000 |
commit | d42cd343ca66aaebb8877c935d1754efcbaea09b (patch) | |
tree | c973bcb6ba8ee973926eee4b176f74ff31ad0166 /scripts | |
parent | 4f6beb5571f0bd920f0670a703be4274e7524f2f (diff) | |
download | gitlab-ce-d42cd343ca66aaebb8877c935d1754efcbaea09b.tar.gz |
Removed return statements from prettier script
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/frontend/prettier.js | 4 |
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)`); |