mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 05:11:27 +08:00
Plug space leaks when processing multiple files
This commit is contained in:
@@ -225,7 +225,7 @@ runFormatter sys format options files = do
|
||||
f :: Status -> FilePath -> IO Status
|
||||
f status file = do
|
||||
newStatus <- process file `catch` handler file
|
||||
return $ status `mappend` newStatus
|
||||
return $! status `mappend` newStatus
|
||||
handler :: FilePath -> IOException -> IO Status
|
||||
handler file e = reportFailure file (show e)
|
||||
reportFailure file str = do
|
||||
|
Reference in New Issue
Block a user