Files
rpiRadio/ProjectNow/NodeServer/node_modules/express-handlebars/lib/utils.js
2018-05-19 02:20:19 +02:00

30 lines
685 B
JavaScript

/*
* 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);
});
};
}