remove extraneous variable
This commit is contained in:
parent
be91c1b78f
commit
b6900b937b
|
@ -31,7 +31,7 @@ var request = require('@root/request');
|
|||
request = promisify(request);
|
||||
|
||||
request('http://www.google.com').then(function (response) {
|
||||
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
|
||||
console.log('statusCode:', response.statusCode); // Print the response status code if a response was received
|
||||
console.log('body:', response.body); // Print the HTML for the Google homepage.
|
||||
}).catch(function (error) {
|
||||
console.log('error:', error); // Print the error if one occurred
|
||||
|
|
Loading…
Reference in New Issue