-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix some doc typos
- Loading branch information
James Butler
committed
Nov 25, 2016
1 parent
d973050
commit a85ba82
Showing
2 changed files
with
20 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'use strict' | ||
|
||
function noop () {} | ||
|
||
/** | ||
* Reflects a promise but does not expose any | ||
* underlying value or rejection from that promise. | ||
* @param {Promise} promise [description] | ||
* @return {Promise} [description] | ||
*/ | ||
exports.reflector = function (promise) { | ||
return promise.then(noop, noop) | ||
} |