diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-24 18:03:53 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-24 21:49:35 +0200 |
commit | 0330bdf5195eb77f04c26a09a8bd2088a261fe53 (patch) | |
tree | 2c13f9f1757bca93e83e425a028dcae78549f40e /lib/_http_agent.js | |
parent | 457d52924152c6f2baf2fddbe76a03bca7bdde7c (diff) | |
download | android-node-v8-0330bdf5195eb77f04c26a09a8bd2088a261fe53.tar.gz android-node-v8-0330bdf5195eb77f04c26a09a8bd2088a261fe53.tar.bz2 android-node-v8-0330bdf5195eb77f04c26a09a8bd2088a261fe53.zip |
lib: macro-ify type checks
Increases the grep factor. Makes it easier to harmonize type checks
across the code base.
Diffstat (limited to 'lib/_http_agent.js')
-rw-r--r-- | lib/_http_agent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_http_agent.js b/lib/_http_agent.js index 07e8f4c557..500ddb057a 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -246,7 +246,7 @@ Agent.prototype.destroy = function() { }; Agent.prototype.request = function(options, cb) { - if (typeof options === 'string') { + if (IS_STRING(options)) { options = url.parse(options); } // don't try to do dns lookups of foo.com:8080, just foo.com |