Merge pull request #42 from sidhujag/master

'make lint' fix - update.go fix
This commit is contained in:
Patrick O'Grady 2020-11-12 17:38:10 -08:00 committed by GitHub
commit 5e1ea91042
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ jobs:
name: default
steps:
- *fast-checkout
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.32.2
- run: make lint
check-license:
executor:

View file

@ -43,7 +43,7 @@ func logPipe(ctx context.Context, pipe io.ReadCloser, identifier string) error {
return err
}
message := strings.Replace(str, "\n", "", -1)
message := strings.ReplaceAll(str, "\n", "")
messages := strings.SplitAfterN(message, " ", 2)
// Trim the timestamp from the log if it exists