#4641 删除无用的代码及规避空指针的问题。

Merged
chenyifan01 merged 5 commits from zouap_static into V20230828 8 months ago
  1. +0
    -4
      models/repo_activity_custom.go
  2. +3
    -1
      modules/git/blame.go

+ 0
- 4
models/repo_activity_custom.go View File

@@ -238,12 +238,8 @@ func GetAllUserPublicRepoKPIStats(startTime time.Time, endTime time.Time) (map[s
CommitLines: 0,
}
}
if value.Email == "1250125907@qq.com" || value.Email == "peiyongyu-34@163.com" {
log.Info("repo path=" + repository.RepoPath())
}
authors[key].Commits += value.Commits
authors[key].CommitLines += value.CommitLines

}

}


+ 3
- 1
modules/git/blame.go View File

@@ -66,7 +66,9 @@ func (r *BlameReader) NextPart() (*BlamePart, error) {
}
} else if line[0] == '\t' {
code := line[1:]

if blamePart == nil {
continue
}
blamePart.Lines = append(blamePart.Lines, code)
}
}


Loading…
Cancel
Save