Ensure bin/lint doesn't complain about removed files when used as a git precommit script.

This commit is contained in:
Tom Wilkie committed 2015-07-08 14:43:21 +00:00
1 parent e50b1f1fe7
commit 56863c3d0e
1 file changed
+5
+5
View File
@@ -56,6 +56,11 @@ function lint {
return
fi
# Don't lint files that don't exist
if ! [ -a "${filename}" ]; then
return
fi
case "$ext" in
go) lint_go "${filename}"
;;