forked from mvdan/sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expand: resolve the two remaining TODOs
The main point of hasGlob in older v2 versions was to avoid doing globbing work for many more directories than needed, since we'd perform globbing on filepath.Join($PWD, field). However, newer versions glob only on the field relative to PWD, so we already skip that extra work without the need for this piece of code. As for the binary search, it can be implemented in just a few lines thanks to sort.SearchStrings.
- Loading branch information
Showing
2 changed files
with
5 additions
and
17 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
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