-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
metaIssues and PRs related to the general management of the project.Issues and PRs related to the general management of the project.
Description
Throughout the codebase there are two altering ways that callbacks are checked.
In some instances it is checked for truthyness
if (callback)
process.nextTick(callback)
Where in others it is explicitly checked
if (typeof callback === 'function')
process.nextTick(callback)
Hopefully this is not opening too large a bike shed, but I was curious if their is a legitimate benefit to using both.
Metadata
Metadata
Assignees
Labels
metaIssues and PRs related to the general management of the project.Issues and PRs related to the general management of the project.