-
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/shfmt: refactor directory walking to deduplicate code
We used to have the CouldBeScript logic split in two places for no reason; now it's in a single place under filepath.Walk. This also lets us unindent the walkPath func, as it no longer needs to use a closure func.
- Loading branch information
Showing
1 changed file
with
38 additions
and
49 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