erlware / erlware_commons

Erlware Commons is an Erlware project focused on all aspects of reusable Erlang components.
http://erlware.github.io/erlware_commons/
MIT License
220 stars 101 forks source link

runmany_wrap doesn't actually call the passed function #138

Closed markan closed 9 months ago

markan commented 6 years ago

I noticed that runmany_wrap doesn't actually call the function passed to it, it only returns it. Looks like some parens were dropped during the refactor (see https://github.com/erlware/erlware_commons/blob/master/src/ec_plists.erl#L878)

I think that's slipped through testing because the ec_plist map tests only test the default malt, which uses the local runmany local code path.

This seems straightforward, so I wrote a quick fix here: https://github.com/chef/erlware_commons/tree/ma/fix_for_ftmap. Happy to make it a PR if you like.