lib/util/redis_session_store.js
function finishBasicPromise (resolve, reject) {
  return (err, res) => {
    if (err) {
      return reject(err);
    } else {
      return resolve(res);
    }
  };
}
function finishBasicPromise (resolve, reject) {
  return (err, res) => {
    if (err) {
      return reject(err);
    } else {
      return resolve(res);
    }
  };
}
function finishBasicPromise ( resolve , reject ) { return ( err , res ) => { if ( err ) { return reject ( err ) ; } else { return resolve ( res ) ; } } ; }
Shorthand for adapting callbacks to `Promise`s.

@param {Function} resolve - A resolve function.
@param {Function} reject - A reject function.
@private
Shorthand for adapting callbacks to Promise s .