Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d42cd343
Commit
d42cd343
authored
Jul 09, 2018
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed return statements from prettier script
parent
4f6beb55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/frontend/prettier.js
scripts/frontend/prettier.js
+2
-2
No files found.
scripts/frontend/prettier.js
View file @
d42cd343
...
...
@@ -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)`
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment