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 157bb8f · Browse files · 1 file+4 added−3 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+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:lib/commander.js+4 added-3 removed
287 unmodified lines
288 if (/undefined|boolean/.test(typeof self[name])) {289 // if no value, bool true, and we have a default, then use it!290 self[name] = null == val291 ? (option.bool292 ? defaultValue || true : false292 ? defaultValue || true293 : false294 ) : val;295 } else if (null !== val) {295 // reassign296 self[name] = val;296 // reassign297 self[name] = val;298 }299 });300301 return this;
603 unmodified lines