mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
13 lines
299 B
Bash
13 lines
299 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
# Expanding gofmt to cover more areas.
|
||
|
|
# This will include auto generated files created by Swagger.
|
||
|
|
# Catching the difference due to https://github.com/golang/go/issues/46289
|
||
|
|
DIFF=$(GO111MODULE=on gofmt -d .)
|
||
|
|
if [[ -n $DIFF ]];
|
||
|
|
then
|
||
|
|
echo "$DIFF";
|
||
|
|
echo "please run gofmt";
|
||
|
|
exit 1;
|
||
|
|
fi
|