mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-21 12:50:02 +02:00
build: update golang version to 1.24 and golangci-lint to v1.64.5 (#1949)
* build: update golang version to 1.24 and golangci-lint to v1.64.5 Signed-off-by: yxxhero <aiopsclub@163.com> * build: update golang version to 1.24 in Dockerfiles Signed-off-by: yxxhero <aiopsclub@163.com> * fix more issues Signed-off-by: yxxhero <aiopsclub@163.com> --------- Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
@@ -391,12 +391,10 @@ func RequiredEnv(name string) (string, error) {
|
||||
|
||||
func Required(warn string, val any) (any, error) {
|
||||
if val == nil {
|
||||
// nolint:govet,staticcheck
|
||||
return nil, fmt.Errorf(warn)
|
||||
return nil, fmt.Errorf("%s", warn)
|
||||
} else if _, ok := val.(string); ok {
|
||||
if val == "" {
|
||||
// nolint:govet,staticcheck
|
||||
return nil, fmt.Errorf(warn)
|
||||
return nil, fmt.Errorf("%s", warn)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user