summaryrefslogtreecommitdiff
path: root/cmd/podman/secrets/inspect.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-29 11:31:39 -0400
committerGitHub <noreply@github.com>2022-04-29 11:31:39 -0400
commit95ff349de22e01eaa76cfc19891cc37952789b82 (patch)
treeddfaeb501528c01a93624e357774116f4819f210 /cmd/podman/secrets/inspect.go
parent73836e0c6a22d919dd8be297bafd137f1bd8ec9e (diff)
parente6557bf0a291f4462081e50461b1b9b8715d1da3 (diff)
downloadpodman-95ff349de22e01eaa76cfc19891cc37952789b82.tar.gz
podman-95ff349de22e01eaa76cfc19891cc37952789b82.tar.bz2
podman-95ff349de22e01eaa76cfc19891cc37952789b82.zip
Merge pull request #14031 from Luap99/errcheck
enable errcheck linter
Diffstat (limited to 'cmd/podman/secrets/inspect.go')
-rw-r--r--cmd/podman/secrets/inspect.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/podman/secrets/inspect.go b/cmd/podman/secrets/inspect.go
index e8947e441..473d5620c 100644
--- a/cmd/podman/secrets/inspect.go
+++ b/cmd/podman/secrets/inspect.go
@@ -61,7 +61,9 @@ func inspect(cmd *cobra.Command, args []string) error {
return err
}
defer w.Flush()
- tmpl.Execute(w, inspected)
+ if err := tmpl.Execute(w, inspected); err != nil {
+ return err
+ }
} else {
buf, err := json.MarshalIndent(inspected, "", " ")
if err != nil {