Skip to content

Commit d93266d

Browse files
alingsemvertes
andauthored
fix: call fmt.Errorf with wrong error
* fix call fmt.Errorf with wrong error * cosmetic change to re-trigger lint CI --------- Co-authored-by: Marc Vertes <mvertes@free.fr>
1 parent 938db1c commit d93266d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/yaegi/extract.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ func genLicense(fname string) (string, error) {
121121
}
122122
license.WriteString("//" + txt + "\n")
123123
}
124-
if sc.Err() != nil {
124+
125+
if err := sc.Err(); err != nil {
125126
return "", fmt.Errorf("could not scan LICENSE file: %w", err)
126127
}
127128

0 commit comments

Comments
 (0)