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>
This commit is contained in:
alingse
2025-05-22 04:32:04 +08:00
committed by GitHub
parent 938db1c6c2
commit d93266d013

View File

@@ -121,7 +121,8 @@ func genLicense(fname string) (string, error) {
}
license.WriteString("//" + txt + "\n")
}
if sc.Err() != nil {
if err := sc.Err(); err != nil {
return "", fmt.Errorf("could not scan LICENSE file: %w", err)
}