don't print config parsing info logs twice

This commit is contained in:
Denis Isaev 2018-09-01 12:39:22 +03:00 committed by Isaev Denis
parent a24cc87a06
commit 47440bc2cc
10 changed files with 108 additions and 77 deletions

View file

@ -89,7 +89,7 @@ func buildTemplateContext() (map[string]interface{}, error) {
func getLintersListMarkdown(enabled bool) string {
var neededLcs []linter.Config
lcs := lintersdb.GetAllSupportedLinterConfigs()
lcs := lintersdb.NewManager().GetAllSupportedLinterConfigs()
for _, lc := range lcs {
if lc.EnabledByDefault == enabled {
neededLcs = append(neededLcs, lc)
@ -114,7 +114,7 @@ func getLintersListMarkdown(enabled bool) string {
func getThanksList() string {
var lines []string
addedAuthors := map[string]bool{}
for _, lc := range lintersdb.GetAllSupportedLinterConfigs() {
for _, lc := range lintersdb.NewManager().GetAllSupportedLinterConfigs() {
if lc.OriginalURL == "" {
continue
}