diff --git a/README.md b/README.md index 9dbeac4..6d71f24 100644 --- a/README.md +++ b/README.md @@ -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