forked from mpeterv/luacheck
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass state while walking node tree in unwrap_parens
Trying to stash the state outside of the function and access it from any other scope creates problems for multi-threaded runs. Passing it around in the function calls keeps it local to the current scope even when/if more than one may be running.
- Loading branch information
Showing
1 changed file
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters