getHookFiles: use getFiles instead of getFile (MR 22)
Everything else uses getFiles, and this will make refactoring later a tad easier
This commit is contained in:
2
main.go
2
main.go
@@ -163,7 +163,7 @@ func getHookFiles(filesdir string) misc.StringSet {
|
|||||||
defer f.Close()
|
defer f.Close()
|
||||||
s := bufio.NewScanner(f)
|
s := bufio.NewScanner(f)
|
||||||
for s.Scan() {
|
for s.Scan() {
|
||||||
if err := getFile(files, s.Text(), true); err != nil {
|
if err := getFiles(files, misc.StringSet{s.Text(): true}, true); err != nil {
|
||||||
log.Fatalf("Unable to find file %q required by %q", s.Text(), path)
|
log.Fatalf("Unable to find file %q required by %q", s.Text(), path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user