소스 검색

Fix golint warnings

Vadim Markovtsev 6 년 전
부모
커밋
d16021ddeb
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      leaves/burndown.go

+ 3 - 0
leaves/burndown.go

@@ -276,6 +276,8 @@ func (analyser *BurndownAnalysis) Consume(deps map[string]interface{}) (map[stri
 	return nil, nil
 }
 
+// Fork clones this item. Everything is copied by reference except the files
+// which are copied by value.
 func (analyser *BurndownAnalysis) Fork(n int) []core.PipelineItem {
 	result := make([]core.PipelineItem, n)
 	for i := range result {
@@ -289,6 +291,7 @@ func (analyser *BurndownAnalysis) Fork(n int) []core.PipelineItem {
 	return result
 }
 
+// Merge combines several items together. We apply the special file merging logic here.
 func (analyser *BurndownAnalysis) Merge(branches []core.PipelineItem) {
 	for key, file := range analyser.files {
 		others := make([]*burndown.File, len(branches))