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:
@@ -163,7 +163,7 @@ func (r *Revive) Format(
|
|||||||
<-exitChan
|
<-exitChan
|
||||||
|
|
||||||
if formatErr != nil {
|
if formatErr != nil {
|
||||||
return "", exitCode, fmt.Errorf("formatting: %w", err)
|
return "", exitCode, fmt.Errorf("formatting: %w", formatErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
return output, exitCode, nil
|
return output, exitCode, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user