浏览代码

Simplify code

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev 6 年之前
父节点
当前提交
ba0f928170
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      internal/plumbing/renames.go

+ 2 - 2
internal/plumbing/renames.go

@@ -332,8 +332,8 @@ func (ra *RenameAnalysis) Consume(deps map[string]interface{}) (map[string]inter
 	}
 	// run two functions in parallel, and take the result from the one which finished earlier
 	wg.Add(2)
-	go func() { matchA() }()
-	go func() { matchB() }()
+	go matchA()
+	go matchB()
 	wg.Wait()
 	var matches object.Changes
 	select {