Skip to content
This repository was archived by the owner on Apr 18, 2020. It is now read-only.

Commit fe26798

Browse files
committed
Removed unnecessary code from githook
1 parent 0401ce4 commit fe26798

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ git diff > "${PATCH}"
5757
git checkout -- .
5858

5959
# Filter staged files and create short list for files to lint
60-
STAGE=$(git diff --cached --name-only --diff-filter=ACMR)
61-
FILES=$(echo ${STAGE} | grep --include=*.js "")
60+
FILES=$(git diff --cached --name-only --diff-filter=ACMR | grep "\.js$")
6261

6362
# Run linter if the commit contains files that require it
6463
if [ "$FILES" ]; then

0 commit comments

Comments
 (0)