Skip to content

Commit

Permalink
*: update linter (#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis authored Aug 13, 2021
1 parent bbfac00 commit c12fd8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ tools/bin/revive: tools/check/go.mod

tools/bin/golangci-lint:
@# Target: pull in specific version of golangci-lint (v1.38.0)
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b ./tools/bin v1.38.0
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./tools/bin v1.41.1
5 changes: 1 addition & 4 deletions components/dm/ansible/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,10 +621,7 @@ func parseRunScript(data []byte) (deployDir string, flags map[string]string, err
line = line[:index]
}

if strings.HasSuffix(line, "\\") {
line = line[:len(line)-1]
}

line = strings.TrimSuffix(line, "\\")
line = strings.TrimSpace(line)

// parse flag
Expand Down

0 comments on commit c12fd8e

Please sign in to comment.