Files
photoview/.husky/lint-api.sh
viktorstrate b52e72b244 Move some album resolvers to actions, refactor album tests
- Album resolvers has been refactored to make it easier to test, this is
done by converting some of the resolvers to actions.

- The album tests has been rewritten (and simplified) to accommodate the changes.
2021-09-23 19:59:40 +02:00

9 lines
220 B
Bash

#!/bin/sh
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep --silent '.go$')
[ -z "$gofiles" ] && exit 0
# Automatically format go code, exit on error
echo "Formatting staged go files"
gofmt -w $gofiles