1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

fix: call fmt.Errorf with wrong err (#1290)

Signed-off-by: alingse <alingse@foxmail.com>
This commit is contained in:
alingse
2025-04-04 22:40:17 +08:00
committed by GitHub
parent f4e39a7aa8
commit d6ad7ce2cd

View File

@@ -163,7 +163,7 @@ func (r *Revive) Format(
<-exitChan
if formatErr != nil {
return "", exitCode, fmt.Errorf("formatting: %w", err)
return "", exitCode, fmt.Errorf("formatting: %w", formatErr)
}
return output, exitCode, nil