-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
fs: remove IIFE in glob #58418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fs: remove IIFE in glob #58418
Conversation
@@ -3171,15 +3172,11 @@ function glob(pattern, options, callback) { | |||
callback = makeCallback(callback); | |||
|
|||
const Glob = lazyGlob(); | |||
// TODO: Use iterator helpers when available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
callback(err); | ||
} | ||
})(); | ||
PromisePrototypeThen( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the catch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the second argument to then()
:
Line 3178 in 8b29b14
callback, |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58418 +/- ##
==========================================
- Coverage 90.21% 90.19% -0.02%
==========================================
Files 635 635
Lines 187171 187168 -3
Branches 36751 36752 +1
==========================================
- Hits 168856 168825 -31
- Misses 11081 11126 +45
+ Partials 7234 7217 -17
🚀 New features to boost your workflow:
|
Refs: #58419