Skip to content
Myr

clean up

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 8940476 · Browse files · 1 file+6 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−4 removed

  • other:+6 added−4 removed

1 file+6 added−4 removed

modified:lib/commander.js+6 added-4 removed
285 unmodified lines
286287 // unassigned or bool288 if ('boolean' == typeof self[name] || 'undefined' == typeof self[name]) {289 // if no value, bool true, and we have a default, then use it!290 self[name] = null == val291 ? (option.bool290 if (null == val) {291 self[name] = option.bool292 ? defaultValue || true293 : false294 ) : val;293 : false;294 } else {295 self[name] = val;296 }297 } else if (null !== val) {298 // reassign299 self[name] = val;300 }
606 unmodified lines