This is an automated email from the ASF dual-hosted git repository. tsato pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit a618af2b4161baab11656780e3b39752310884d9 Author: Tadayoshi Sato <sato.tadayo...@gmail.com> AuthorDate: Wed Jul 27 13:07:20 2022 +0900 fix(lint): nolintlint --- pkg/cmd/run_help.go | 3 +-- pkg/util/resource/config.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/run_help.go b/pkg/cmd/run_help.go index c2d54a011..e35d54a55 100644 --- a/pkg/cmd/run_help.go +++ b/pkg/cmd/run_help.go @@ -19,7 +19,7 @@ package cmd import ( "context" - "crypto/sha1" //nolint + "crypto/sha1" "fmt" "path" "strings" @@ -33,7 +33,6 @@ import ( corev1 "k8s.io/api/core/v1" ) -//nolint func hashFrom(contents ...[]byte) string { // SHA1 because we need to limit the length to less than 64 chars hash := sha1.New() diff --git a/pkg/util/resource/config.go b/pkg/util/resource/config.go index 6bfa5be2b..197e3fef5 100644 --- a/pkg/util/resource/config.go +++ b/pkg/util/resource/config.go @@ -19,7 +19,7 @@ package resource import ( "context" - "crypto/sha1" //nolint + "crypto/sha1" "fmt" "path/filepath" "regexp" @@ -235,7 +235,6 @@ func ConvertFileToConfigmap(ctx context.Context, c client.Client, config *Config return cm, nil } -//nolint func hashFrom(contents ...[]byte) string { // SHA1 because we need to limit the length to less than 64 chars hash := sha1.New()