dev: do not print extra whitespace in deprecated lint log (#3596)
This commit is contained in:
parent
62730bf0e7
commit
e8524ac199
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user