mirror of
https://github.com/remy/inliner.git
synced 2024-08-16 20:00:35 +03:00
style: lint fixes
This commit is contained in:
parent
ba36b8216b
commit
03f9ea6016
@ -64,12 +64,13 @@ module.exports = function get(url, options) {
|
||||
|
||||
debug('request %s', url, settings);
|
||||
|
||||
cache[url] = new Promise(function (resolve, reject) {
|
||||
cache[url] = new Promise(function (resolve) {
|
||||
request(encodeURI(url), settings, function response(error, res, body) {
|
||||
if (error) {
|
||||
debug('request failed: %s', error.message);
|
||||
inliner.emit('warning', 'failed to request ' + base + ' (' + error.message + ')');
|
||||
// return reject(error);
|
||||
inliner.emit('warning', 'failed to request ' + base + ' (' +
|
||||
error.message + ')');
|
||||
|
||||
body = '';
|
||||
res = {
|
||||
headers: {},
|
||||
|
Loading…
Reference in New Issue
Block a user