Skip to content

Commit

Permalink
Prevent make fmt from failing in default case
Browse files Browse the repository at this point in the history
Apologies for the terrible hack. This just makes sure we always have
a default file to format, so if the unformatted list is empty
we don't error.
  • Loading branch information
mwhooker committed Jul 17, 2018
1 parent a658b4a commit 9384f32
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 @@ -61,7 +61,7 @@ dev: deps ## Build and install a development build
@cp $(GOPATH)/bin/packer pkg/$(GOOS)_$(GOARCH)

fmt: ## Format Go code
@gofmt -w -s $(UNFORMATTED_FILES)
@gofmt -w -s main.go $(UNFORMATTED_FILES)

fmt-check: ## Check go code formatting
@echo "==> Checking that code complies with gofmt requirements..."
Expand Down

0 comments on commit 9384f32

Please sign in to comment.