diff --git a/Makefile b/Makefile index c47b377a..fd97f20e 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ docker: presubmit: vet @echo ">> checking go formatting" - @./build/check_gofmt.sh . + @./build/check_gofmt.sh @echo ">> checking file boilerplate" @./build/check_boilerplate.sh diff --git a/build/check_gofmt.sh b/build/check_gofmt.sh index 65049074..cb57aaf5 100755 --- a/build/check_gofmt.sh +++ b/build/check_gofmt.sh @@ -14,12 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Check usage. -if [ $# -ne 1 ]; then - echo "USAGE: check_gofmt " - exit 1 -fi - # Check formatting on non Godep'd code. GOFMT_PATHS=$(find . -not -wholename "*.git*" -not -wholename "*Godeps*" -not -wholename "*vendor*" -not -name "." -type d)