Skip to content

Commit e8524ac

Browse files
authored
dev: do not print extra whitespace in deprecated lint log (golangci#3596)
1 parent 62730bf commit e8524ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/lint/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func NewRunner(cfg *config.Config, log logutils.Log, goenv *goutil.Env, es *lint
5858

5959
var extra string
6060
if lc.Deprecation.Replacement != "" {
61-
extra = fmt.Sprintf(" Replaced by %s.", lc.Deprecation.Replacement)
61+
extra = fmt.Sprintf("Replaced by %s.", lc.Deprecation.Replacement)
6262
}
6363

6464
log.Warnf("The linter '%s' is deprecated (since %s) due to: %s %s", name, lc.Deprecation.Since, lc.Deprecation.Message, extra)

0 commit comments

Comments
 (0)