Update linter for golang v1.25 compatibility
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
committed by
Christian Goll
parent
019408d076
commit
081d2ec61e
@@ -44,7 +44,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
if tempErr != nil {
|
||||
return fmt.Errorf("could not create temp file: %s", tempErr)
|
||||
}
|
||||
defer os.Remove(tempFile.Name())
|
||||
defer func() { _ = os.Remove(tempFile.Name()) }()
|
||||
|
||||
if !NoHeader {
|
||||
yamlTemplate := node.ConfToYaml(node.Node{}, nil)
|
||||
|
||||
Reference in New Issue
Block a user