fix getAuthor/Email funcs

This commit is contained in:
2023-02-17 17:47:37 -08:00
parent 7dc43e18ed
commit ec642ccefc
3 changed files with 14 additions and 8 deletions

View File

@@ -39,11 +39,11 @@ func (paths RepoSet) GetRepoCommits(year int, authors []string) ([][]types.Commi
return
}
cc = FilterCChanByYear(cc, year)
cc, err = FilterCChanByAuthor(cc, authors)
cc2, err := FilterCChanByAuthor(cc, authors)
if err != nil {
return
}
for c := range cc {
for c := range cc2 {
outChan <- c
}
}(p)

View File

@@ -50,7 +50,7 @@ func GetAuthorName() (string, error) {
if err != nil {
return "", err
}
return conf.Author.Name, nil
return conf.User.Name, nil
}
func GetAuthorEmail() (string, error) {
@@ -58,5 +58,5 @@ func GetAuthorEmail() (string, error) {
if err != nil {
return "", err
}
return conf.Author.Email, nil
return conf.User.Email, nil
}