Skip to content

Commit

Permalink
change: pre-commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
troychaplin committed Jul 15, 2024
1 parent 175bf3e commit 6e53e8a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@ npm run format

# Check if there are any changes in the working directory
if [ -n "$(git status --porcelain)" ]; then
echo ""
git add -u
echo ""
echo "\033[0;31mChecking and updating file formatting...\033[0m"
echo ""

# Stage the changes
git add -u

echo "\033[0;32mFiles are properly formatted. You can now commit your changes.\033[0m"
echo ""
# exit 1
fi

# If no changes, continue with the other tasks
Expand Down

0 comments on commit 6e53e8a

Please sign in to comment.