Browse Source

remove unnecessary if branch

http2
Vsevolod Strukchinsky 10 years ago
parent
commit
68e0b26e79
  1. 2
      index.js

2
index.js

@ -27,8 +27,6 @@ function got(url, opts, cb) {
if (typeof opts === 'function') {
cb = opts;
opts = {};
} else if (!opts) {
opts = {};
}
opts = objectAssign({}, opts);

Loading…
Cancel
Save