fix lint with uncoditional strings.Replace

This commit is contained in:
Yu Huang 2021-06-17 11:02:31 -04:00
parent d63e07087c
commit d0cfcd96ba
1 changed files with 1 additions and 3 deletions

View File

@ -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{