mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-03 19:40:05 +00:00
Fix the linter error
This commit is contained in:
parent
219fc0a126
commit
669974d608
@ -147,7 +147,7 @@ func loadConfigFile(config *ConfigStruct, silent bool) error {
|
|||||||
ConfigFilePath = cwdConfig
|
ConfigFilePath = cwdConfig
|
||||||
}
|
}
|
||||||
defer reader.Close()
|
defer reader.Close()
|
||||||
|
|
||||||
buf, err := io.ReadAll(reader)
|
buf, err := io.ReadAll(reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -223,7 +223,7 @@ func mergeSetFlag(configElemValue reflect.Value, setValues []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(setErrors) > 0 {
|
if len(setErrors) > 0 {
|
||||||
return fmt.Errorf(strings.Join(setErrors, "\n"))
|
return errors.New(strings.Join(setErrors, "\n"))
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user