dev: do not print extra whitespace in deprecated lint log (#3596)

This commit is contained in:
Oleksandr Redko 2023-02-16 11:55:04 +02:00 committed by GitHub
parent 62730bf0e7
commit e8524ac199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ func NewRunner(cfg *config.Config, log logutils.Log, goenv *goutil.Env, es *lint
var extra string
if lc.Deprecation.Replacement != "" {
extra = fmt.Sprintf(" Replaced by %s.", lc.Deprecation.Replacement)
extra = fmt.Sprintf("Replaced by %s.", lc.Deprecation.Replacement)
}
log.Warnf("The linter '%s' is deprecated (since %s) due to: %s %s", name, lc.Deprecation.Since, lc.Deprecation.Message, extra)