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:
@@ -121,7 +121,8 @@ func genLicense(fname string) (string, error) {
|
|||||||
}
|
}
|
||||||
license.WriteString("//" + txt + "\n")
|
license.WriteString("//" + txt + "\n")
|
||||||
}
|
}
|
||||||
if sc.Err() != nil {
|
|
||||||
|
if err := sc.Err(); err != nil {
|
||||||
return "", fmt.Errorf("could not scan LICENSE file: %w", err)
|
return "", fmt.Errorf("could not scan LICENSE file: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user