Skip to content

Commit ca162a8

Browse files
committed
fix: broken golangci-lint tag
1 parent 076ad27 commit ca162a8

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LDFLAGS += -X "main.airVersion=$(AIRVER)"
44
LDFLAGS += -X "main.goVersion=$(shell go version | sed -r 's/go version go(.*)\ .*/\1/')"
55

66
GO := GO111MODULE=on CGO_ENABLED=0 go
7-
GOLANGCI_LINT_VERSION = 1.55.2
7+
GOLANGCI_LINT_VERSION = v1.56.2
88

99
.PHONY: init
1010
init: install-golangci-lint

runner/config.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,9 @@ func (c *Config) killDelay() time.Duration {
350350
// interpret as milliseconds if less than the value of 1 millisecond
351351
if c.Build.KillDelay < time.Millisecond {
352352
return c.Build.KillDelay * time.Millisecond
353-
} else {
354-
// normalize kill delay to milliseconds
355-
return time.Duration(c.Build.KillDelay.Milliseconds()) * time.Millisecond
356353
}
354+
// normalize kill delay to milliseconds
355+
return time.Duration(c.Build.KillDelay.Milliseconds()) * time.Millisecond
357356
}
358357

359358
func (c *Config) binPath() string {

runner/engine.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (e *Engine) checkRunEnv() error {
113113
}
114114

115115
func (e *Engine) watching(root string) error {
116-
return filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
116+
return filepath.Walk(root, func(path string, info os.FileInfo, _ error) error {
117117
// NOTE: path is absolute
118118
if info != nil && !info.IsDir() {
119119
if e.checkIncludeFile(path) {

0 commit comments

Comments
 (0)