浏览代码

rename method for clarity

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 5 年之前
父节点
当前提交
b42b61e307
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      local/build.go

+ 2 - 2
local/build.go

@@ -52,7 +52,7 @@ func (s *composeService) ensureImagesExists(ctx context.Context, project *types.
 			}
 		}
 		if service.Build != nil {
-			opts[service.Name] = s.buildImage(service, project.WorkingDir)
+			opts[service.Name] = s.toBuildOptions(service, project.WorkingDir)
 			continue
 		}
 
@@ -102,7 +102,7 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opts
 	return err
 }
 
-func (s *composeService) buildImage(service types.ServiceConfig, contextPath string) build.Options {
+func (s *composeService) toBuildOptions(service types.ServiceConfig, contextPath string) build.Options {
 	var tags []string
 	if service.Image != "" {
 		tags = append(tags, service.Image)