We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9c0c1 commit 713a70fCopy full SHA for 713a70f
1 file changed
lib/tmp.js
@@ -97,12 +97,11 @@ function _isUndefined(obj) {
97
*/
98
function _parseArguments(options, callback) {
99
if (typeof options == 'function') {
100
- var
101
- tmp = options,
102
- options = callback || {},
103
- callback = tmp;
104
- } else if (typeof options == 'undefined') {
105
- options = {};
+ return [callback || {}, options];
+ }
+
+ if (_isUndefined(options)) {
+ return [{}, callback];
106
}
107
108
return [options, callback];
0 commit comments