Lint fixes

This commit is contained in:
abhijitkane
2018-11-30 11:34:23 +05:30
parent 146cc21c20
commit 0e8a1a3473

View File

@@ -1208,7 +1208,7 @@ module.exports = {
}
catch (e) {
// the SDK sometimes throws an exception in url.toString :/
//console.error('Exception thrown while trying to stringify url for item.request:', item.request,
// console.error('Exception thrown while trying to stringify url for item.request.url:', item.request.url,
// 'Exception:', e);
thisOriginalRequest.url = '';
}
@@ -1216,15 +1216,15 @@ module.exports = {
thisOriginalRequest.header = item.request.headers.toJSON();
}
catch (e) {
//console.error('Exception thrown while trying to stringify headers for item.request:', item.request,
// 'Exception:', e);
// console.error('Exception thrown while trying to stringify headers for item.request.headers:',
// item.request.headers, 'Exception:', e);
thisOriginalRequest.header = [];
}
try {
thisOriginalRequest.body = (item.request.body ? item.request.body.toJSON() : {});
}
catch (e) {
//console.error('Exception thrown while trying to json-ify body for item.request:', item.request,
// console.error('Exception thrown while trying to json-ify body for item.request.body:', item.request.body,
// 'Exception:', e);
thisOriginalRequest.body = {};
}