summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/system.go
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2021-02-13 22:48:52 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2021-02-16 23:40:09 +0100
commit68a8d397cec73e956abc71da692bf89d5ff58a86 (patch)
treeef33ddde8d9e19455e7712f473983d169f914ffd /pkg/api/handlers/compat/system.go
parent50042120e947fc7aee601f0c65ea485daf604ee1 (diff)
downloadpodman-68a8d397cec73e956abc71da692bf89d5ff58a86.tar.gz
podman-68a8d397cec73e956abc71da692bf89d5ff58a86.tar.bz2
podman-68a8d397cec73e956abc71da692bf89d5ff58a86.zip
Add missing early returns in compat API
[NO TESTS NEEDED] Signed-off-by: Riyad Preukschas <riyad@informatik.uni-bremen.de>
Diffstat (limited to 'pkg/api/handlers/compat/system.go')
-rw-r--r--pkg/api/handlers/compat/system.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/system.go b/pkg/api/handlers/compat/system.go
index e21ae160a..66b4236f9 100644
--- a/pkg/api/handlers/compat/system.go
+++ b/pkg/api/handlers/compat/system.go
@@ -19,6 +19,7 @@ func GetDiskUsage(w http.ResponseWriter, r *http.Request) {
df, err := ic.SystemDf(r.Context(), options)
if err != nil {
utils.InternalServerError(w, err)
+ return
}
imgs := make([]*docker.ImageSummary, len(df.Images))