Refactor some things around a little
This commit is contained in:
3
main.go
3
main.go
@@ -134,7 +134,8 @@ func main() {
|
||||
defer wg.Done()
|
||||
logger.Printf("Processing file: %s", file)
|
||||
|
||||
modCount, matchCount, err := proc.Process(file, pattern, luaExpr)
|
||||
// It's a bit fucked, maybe I could do better to call it from proc... But it'll do for now
|
||||
modCount, matchCount, err := processor.Process(proc, file, pattern, luaExpr)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Failed to process file %s: %v\n", file, err)
|
||||
stats.FailedFiles++
|
||||
|
Reference in New Issue
Block a user