uk.js
function getCookies() {
  return new Promise((resolve, reject) => {
    request.get(rootUrl, function(err, res, body) {
      if (err != null && res.statusCode !== 200) {
        reject(err || new Error('Accessing UK information failed'))
        return
      }
      resolve()
    })
  })
}
function getCookies() {
  return new Promise((resolve, reject) => {
    request.get(rootUrl, function(err, res, body) {
      if (err != null && res.statusCode !== 200) {
        reject(err || new Error('Accessing UK information failed'))
        return
      }
      resolve()
    })
  })
}
function getCookies ( ) { return new Promise ( ( resolve , reject ) => { request . get ( rootUrl , function ( err , res , body ) { if ( err != null && res . statusCode !== 200 ) { reject ( err || new Error ( 'Accessing UK information failed' ) ) return } resolve ( ) } ) } ) }
Return a promise.
Return a promise .