Skip to content

Commit

Permalink
Fixing CodeQL errors
Browse files Browse the repository at this point in the history
Signed-off-by: Vishnu Challa <[email protected]>
  • Loading branch information
Vishnu Challa committed Oct 30, 2024
1 parent 0e47012 commit 1f99570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocp-metadata/ocp-metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (meta *Metadata) getIPSec() (bool, string, error) {
}
}
if err != nil {
return false, ipsecType, fmt.Errorf(err.Error())
return false, ipsecType, fmt.Error(err.Error())

Check failure on line 364 in ocp-metadata/ocp-metadata.go

View workflow job for this annotation

GitHub Actions / build

undefined: fmt.Error (typecheck)
}
if ipsecMode != "Disabled" {
return true, ipsecMode, nil
Expand Down

0 comments on commit 1f99570

Please sign in to comment.