Skip to content

Commit e8dd384

Browse files
committed
Makefile: Update fmt target to include gofmt -s flag
The gofmtcheck.sh script uses the gofmt -s flag for reporting simplication issues, so the fixing command must also include this flag.
1 parent b33ad10 commit e8dd384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protobuf:
1919
bash internal/tfplugin5/generate.sh
2020

2121
fmt:
22-
gofmt -w $(GOFMT_FILES)
22+
gofmt -s -w $(GOFMT_FILES)
2323

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

0 commit comments

Comments
 (0)