Skip to content

Commit

Permalink
fix: broken golangci-lint tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmtrek committed Feb 21, 2024
1 parent 076ad27 commit ca162a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LDFLAGS += -X "main.airVersion=$(AIRVER)"
LDFLAGS += -X "main.goVersion=$(shell go version | sed -r 's/go version go(.*)\ .*/\1/')"

GO := GO111MODULE=on CGO_ENABLED=0 go
GOLANGCI_LINT_VERSION = 1.55.2
GOLANGCI_LINT_VERSION = v1.56.2

.PHONY: init
init: install-golangci-lint
Expand Down
5 changes: 2 additions & 3 deletions runner/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,9 @@ func (c *Config) killDelay() time.Duration {
// interpret as milliseconds if less than the value of 1 millisecond
if c.Build.KillDelay < time.Millisecond {
return c.Build.KillDelay * time.Millisecond
} else {
// normalize kill delay to milliseconds
return time.Duration(c.Build.KillDelay.Milliseconds()) * time.Millisecond
}
// normalize kill delay to milliseconds
return time.Duration(c.Build.KillDelay.Milliseconds()) * time.Millisecond
}

func (c *Config) binPath() string {
Expand Down
2 changes: 1 addition & 1 deletion runner/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (e *Engine) checkRunEnv() error {
}

func (e *Engine) watching(root string) error {
return filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
return filepath.Walk(root, func(path string, info os.FileInfo, _ error) error {
// NOTE: path is absolute
if info != nil && !info.IsDir() {
if e.checkIncludeFile(path) {
Expand Down

0 comments on commit ca162a8

Please sign in to comment.