Skip to content

Commit

Permalink
🔨 docs(pre-commit): remove redundancy in minified error
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Aug 18, 2023
1 parent 68e37f4 commit 2833d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ function is_minified() {

# If the file isn't as small as it can be, suggest the better compressor in the error message
if (( terser_size < uglifyjs_size )); then
error_exit "Minified JS file $file isn't as small as it can be with terser! Consider using terser for better compression."
error_exit "Minified JS file $file isn't as small as it can be! Try using terser for better compression."
else
error_exit "Minified JS file $file isn't as small as it can be with uglifyjs! Consider using uglifyjs for better compression."
error_exit "Minified JS file $file isn't as small as it can be! Try using uglifyjs for better compression."
fi
}

Expand Down

0 comments on commit 2833d9f

Please sign in to comment.