Updated pre-commit hook