mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-27 00:36:02 +08:00
Use fromList instead of reimplementing it in terms of foldl
This commit is contained in:
@@ -1286,7 +1286,7 @@ dataflow ctx entry = do
|
||||
else do
|
||||
let (next, rest) = S.deleteFindMin ps
|
||||
nexts <- process states next
|
||||
writeSTRef pending $ foldl (flip S.insert) rest nexts
|
||||
writeSTRef pending $ S.union (S.fromList nexts) rest
|
||||
f (n-1) pending states
|
||||
|
||||
process states node = do
|
||||
|
Reference in New Issue
Block a user