misc: drop unused Debug variable
Fix deadcode warning: misc.go:8:2 deadcode `Debug` is unused We have logging options and this one is not really needed. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
73bd26bc12
commit
b5c08a8e73
2 changed files with 1 additions and 4 deletions
4
Makefile
4
Makefile
|
@ -3,7 +3,6 @@
|
|||
REPO ?= $(shell go list -m)
|
||||
VERSION ?= $(shell git describe --tags --dirty --always)
|
||||
BUILD ?= $(shell date -u --iso=seconds)
|
||||
DEBUG ?= false
|
||||
|
||||
HUB_IMAGE ?= nspccdev/neofs-http-gw
|
||||
HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"
|
||||
|
@ -24,8 +23,7 @@ $(BINS): $(DIRS) dep
|
|||
GO111MODULE=on \
|
||||
go build -v -trimpath \
|
||||
-ldflags "-X main.Version=$(VERSION) \
|
||||
-X main.Build=$(BUILD) \
|
||||
-X main.Debug=$(DEBUG)" \
|
||||
-X main.Build=$(BUILD)" \
|
||||
-o $@ ./
|
||||
|
||||
$(DIRS):
|
||||
|
|
1
misc.go
1
misc.go
|
@ -5,5 +5,4 @@ const Prefix = "HTTP_GW"
|
|||
var (
|
||||
Build = "now"
|
||||
Version = "dev"
|
||||
Debug = "false"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue