Skip to content

Commit

Permalink
Makefile: Update fmt target to include gofmt -s flag
Browse files Browse the repository at this point in the history
The gofmtcheck.sh script uses the gofmt -s flag for reporting simplication issues, so the fixing command must also include this flag.
  • Loading branch information
bflad committed Mar 19, 2020
1 parent b33ad10 commit e8dd384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protobuf:
bash internal/tfplugin5/generate.sh

fmt:
gofmt -w $(GOFMT_FILES)
gofmt -s -w $(GOFMT_FILES)

fmtcheck:
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
Expand Down

0 comments on commit e8dd384

Please sign in to comment.