Skip to content

Commit 6f380a2

Browse files
lafriksandreynering
authored andcommitted
Remove go version check for make fmt (#2558)
1 parent 80b430d commit 6f380a2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,8 @@ clean:
6969
integrations/indexers-mysql/ integrations/indexers-pgsql integrations/indexers-sqlite \
7070
integrations/mysql.ini integrations/pgsql.ini
7171

72-
required-gofmt-version:
73-
@$(GO) version | grep -q '\(1.7\|1.8\)' || { echo "We require go version 1.7 or 1.8 to format code" >&2 && exit 1; }
74-
7572
.PHONY: fmt
76-
fmt: required-gofmt-version
73+
fmt:
7774
$(GOFMT) -w $(GOFILES)
7875

7976
.PHONY: vet
@@ -125,7 +122,7 @@ misspell:
125122
misspell -w -i unknwon $(GOFILES)
126123

127124
.PHONY: fmt-check
128-
fmt-check: required-gofmt-version
125+
fmt-check:
129126
# get all go files and run go fmt on them
130127
@diff=$$($(GOFMT) -d $(GOFILES)); \
131128
if [ -n "$$diff" ]; then \

0 commit comments

Comments
 (0)