Only apply language filter if specified in config. (#140)

GitHub repos were previously filtered by language even when no language filter was specified in config. This only affected GitHub, the others already check if lang filter exists before filtering.
This commit is contained in:
Jamie Holdstock
2023-02-22 12:39:33 +01:00
committed by GitHub
parent e56f8c8ec2
commit 05e56b426a
+5 -3
View File
@@ -153,9 +153,11 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
}
}
}
if r.Language != nil {
if !languages[strings.ToLower(*r.Language)] {
continue
if len(repo.Filter.Languages) > 0 {
if r.Language != nil {
if !languages[strings.ToLower(*r.Language)] {
continue
}
}
}
if *r.StargazersCount < repo.Filter.Stars {