style(*): fix lint issues

This commit is contained in:
Nightapes
2019-06-15 23:16:30 +02:00
parent cf0431846b
commit efcea0fafd
8 changed files with 36 additions and 34 deletions

View File

@@ -50,7 +50,7 @@ func New(format string, config config.ChangelogConfig) (*Analyzer, error) {
log.Debugf("Commit format set to angular")
analyzer.analyzeCommit = newAngular()
default:
return nil, fmt.Errorf("Invalid commit format: %s", format)
return nil, fmt.Errorf("invalid commit format: %s", format)
}
return analyzer, nil

View File

@@ -107,6 +107,6 @@ func (a *angular) analyze(commit gitutil.Commit, rule Rule) (AnalyzedCommit, boo
}
}
log.Tracef("%s does not match %s, skip", commit.Message, rule.Tag)
return analyzed, false, fmt.Errorf("Not found")
return analyzed, false, fmt.Errorf("not found")
}