Browse code

daemon/containerd: translateRegistryError: add early return

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2025/06/13 22:31:38
Showing 1 changed files
... ...
@@ -14,6 +14,11 @@ import (
14 14
 )
15 15
 
16 16
 func translateRegistryError(ctx context.Context, err error) error {
17
+	if err == nil {
18
+		// Nothing to do
19
+		return nil
20
+	}
21
+
17 22
 	// Check for registry specific error
18 23
 	var derrs docker.Errors
19 24
 	if !errors.As(err, &derrs) {