Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit d78c76e

Browse files
committed
fix make lint
1 parent 1707372 commit d78c76e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tree_entry.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -170,18 +170,18 @@ func initGetCommitInfoState(entries Entries, headCommit *Commit, treePath string
170170
}
171171

172172
// GetCommitsInfo gets information of all commits that are corresponding to these entries
173-
func (entries Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interface{}, error) {
174-
if len(entries) == 0 {
173+
func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interface{}, error) {
174+
if len(tes) == 0 {
175175
return nil, nil
176176
}
177177

178-
state := initGetCommitInfoState(entries, commit, treePath)
178+
state := initGetCommitInfoState(tes, commit, treePath)
179179
if err := getCommitsInfo(state); err != nil {
180180
return nil, err
181181
}
182182

183-
commitsInfo := make([][]interface{}, len(entries))
184-
for i, entry := range entries {
183+
commitsInfo := make([][]interface{}, len(tes))
184+
for i, entry := range tes {
185185
commit = state.commits[filepath.Join(treePath, entry.Name())]
186186
switch (entry.Type) {
187187
case ObjectCommit:

0 commit comments

Comments
 (0)