dev: close errcheck exclude file (#4649)
This commit is contained in:
parent
7ad7949ca9
commit
375fa11cca
@ -254,6 +254,7 @@ func readExcludeFile(name string) ([]string, error) {
|
||||
if fh == nil {
|
||||
return nil, fmt.Errorf("failed reading exclude file: %s: %w", name, err)
|
||||
}
|
||||
defer func() { _ = fh.Close() }()
|
||||
|
||||
scanner := bufio.NewScanner(fh)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user