From 68a8d397cec73e956abc71da692bf89d5ff58a86 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Sat, 13 Feb 2021 22:48:52 +0100 Subject: Add missing early returns in compat API [NO TESTS NEEDED] Signed-off-by: Riyad Preukschas --- pkg/api/handlers/compat/system.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/api/handlers/compat/system.go') 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)) -- cgit v1.2.3-54-g00ecf