Whitelist doesn't seem to do anything

This commit is contained in:
Oliver Blanthorn 2018-04-13 19:41:22 +01:00
parent 095ce771ea
commit 4981a3618e
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -1,9 +1,7 @@
#!/bin/sh
filetypes="*.js *.jsx *.ts"
# Run prettier on the diffs
$(npm bin)/precise-commits $filetypes
$(npm bin)/precise-commits
# Re-add the modified files
files=$(git diff --cached --name-only --diff-filter=ACM $filetypes)
if [ "" != "$files" ]; then