Remove a bit from pre-commit that husky says we should (#4286)

This commit is contained in:
Jack Amadeo
2025-08-25 08:36:28 -04:00
committed by GitHub
parent 3e1557b925
commit 4ef3746855
-3
View File
@@ -1,9 +1,6 @@
#!/usr/bin/env sh
# Only auto-format desktop TS code if relevant files are modified
if git diff --cached --name-only | grep -q "^ui/desktop/"; then
if [ -d "ui/desktop" ]; then
. "$(dirname -- "$0")/_/husky.sh"
cd ui/desktop && npx lint-staged
else
echo "Warning: ui/desktop directory does not exist, skipping lint-staged"