diff options
| author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-22 15:14:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-22 15:14:38 +0100 |
| commit | 901066acd113ee3bea709cc558d86c4c438e2f67 (patch) | |
| tree | 018a8f7918b50e9d1bc58f7ce9a981f628c3d295 /test/utils/utils.go | |
| parent | fc963159b8078c7e3ca6571174fb3a82d1023b43 (diff) | |
| parent | 06dd9136a253521cb74497a59f2e6894806a5b6d (diff) | |
| download | podman-901066acd113ee3bea709cc558d86c4c438e2f67.tar.gz podman-901066acd113ee3bea709cc558d86c4c438e2f67.tar.bz2 podman-901066acd113ee3bea709cc558d86c4c438e2f67.zip | |
Merge pull request #13580 from vrothberg/enable-linters
enable linters
Diffstat (limited to 'test/utils/utils.go')
| -rw-r--r-- | test/utils/utils.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/utils/utils.go b/test/utils/utils.go index 8fe45dca0..a6295cd19 100644 --- a/test/utils/utils.go +++ b/test/utils/utils.go @@ -479,7 +479,10 @@ func IsCommandAvailable(command string) bool { func WriteJSONFile(data []byte, filePath string) error { var jsonData map[string]interface{} json.Unmarshal(data, &jsonData) - formatJSON, _ := json.MarshalIndent(jsonData, "", " ") + formatJSON, err := json.MarshalIndent(jsonData, "", " ") + if err != nil { + return err + } return ioutil.WriteFile(filePath, formatJSON, 0644) } |
