Skip to content

Commit

Permalink
Run 'make lint'
Browse files Browse the repository at this point in the history
  • Loading branch information
maqiuyujoyce committed Jul 30, 2024
1 parent 7ec0e1a commit 9934d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,11 +551,11 @@ func runCLI(h *create.Harness, args []string, uniqueID string, baseOutputPath st
func getKubeObjectInStringFromFile(path string) (string, error) {
absPath, err := filepath.Abs(path)
if err != nil {
return "", fmt.Errorf("error converting path %q to absolute path: %v", path, err)
return "", fmt.Errorf("error converting path %q to absolute path: %w", path, err)
}
objInBytes, err := os.ReadFile(absPath)
if err != nil {
return "", fmt.Errorf("failed to read file %q: %v", absPath, err)
return "", fmt.Errorf("failed to read file %q: %w", absPath, err)
}
objInString := string(objInBytes)
return objInString, nil
Expand Down

0 comments on commit 9934d4c

Please sign in to comment.