From d0cfcd96baea3ee0dce6cb47e7e425e26dd31fdd Mon Sep 17 00:00:00 2001 From: Yu Huang Date: Thu, 17 Jun 2021 11:02:31 -0400 Subject: [PATCH] fix lint with uncoditional strings.Replace --- cmd/commands/dockerize/dockerize.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/commands/dockerize/dockerize.go b/cmd/commands/dockerize/dockerize.go index 10b013e..5dfebee 100644 --- a/cmd/commands/dockerize/dockerize.go +++ b/cmd/commands/dockerize/dockerize.go @@ -102,9 +102,7 @@ func dockerizeApp(cmd *commands.Command, args []string) int { // In case of multiple ports to expose inside the container, // replace all the commas with whitespaces. // See the verb EXPOSE in the Docker documentation. - if strings.Contains(expose, ",") { - expose = strings.Replace(expose, ",", " ", -1) - } + expose = strings.Replace(expose, ",", " ", -1) _, entrypoint := path.Split(appdir) dockerfile := Dockerfile{