From 301eb2a60be4df05dfadbedb7a1ecdb3d7acdf4c Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 5 Apr 2023 19:32:31 +0000 Subject: [PATCH] Refactor --- kernel.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/kernel.go b/kernel.go index 92c97ff..4dd6733 100644 --- a/kernel.go +++ b/kernel.go @@ -296,18 +296,7 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand, } for _, c := range commands { - switch c.DistroType { - case config.Ubuntu: - d += "RUN " + c.Command + "\n" - case config.CentOS: - d += "RUN " + c.Command + "\n" - case config.Debian: - d += "RUN " + c.Command + "\n" - default: - err = fmt.Errorf("%s not yet supported", - sk.DistroType.String()) - return - } + d += "RUN " + c.Command + "\n" } switch sk.DistroType {