mirror of
https://github.com/bvanroll/yahoo-thing.git
synced 2025-08-29 20:12:46 +00:00
euh
This commit is contained in:
29
node_modules/express-handlebars/lib/utils.js
generated
vendored
Normal file
29
node_modules/express-handlebars/lib/utils.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Yahoo Inc. All rights reserved.
|
||||
* Copyrights licensed under the New BSD License.
|
||||
* See the accompanying LICENSE file for terms.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
exports.assign = Object.assign || require('object.assign');
|
||||
exports.passError = passError;
|
||||
exports.passValue = passValue;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
function passError(callback) {
|
||||
return function (reason) {
|
||||
setImmediate(function () {
|
||||
callback(reason);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function passValue(callback) {
|
||||
return function (value) {
|
||||
setImmediate(function () {
|
||||
callback(null, value);
|
||||
});
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user