mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-03 00:51:11 +03:00
The http connection is being closed before sending all data. May have something to do with the Range header
11 lines
226 B
Bash
Executable File
11 lines
226 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
gofiles=$(git diff --name-only --diff-filter=ACM | grep '.go$')
|
|
[ -z "$gofiles" ] && exit 0
|
|
|
|
unformatted=$(gofmt -l $gofiles)
|
|
[ -z "$unformatted" ] && exit 0
|
|
|
|
for f in $unformatted; do
|
|
go fmt "$f"
|
|
done |