Skip to content

Commit d6ad7ce

Browse files
authored
fix: call fmt.Errorf with wrong err (#1290)
Signed-off-by: alingse <[email protected]>
1 parent f4e39a7 commit d6ad7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

revivelib/core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (r *Revive) Format(
163163
<-exitChan
164164

165165
if formatErr != nil {
166-
return "", exitCode, fmt.Errorf("formatting: %w", err)
166+
return "", exitCode, fmt.Errorf("formatting: %w", formatErr)
167167
}
168168

169169
return output, exitCode, nil

0 commit comments

Comments
 (0)