Skip to content

Commit

Permalink
Remove unnecessary parens; don't assign undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jun 14, 2015
1 parent 5ff2b94 commit b16f636
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -2223,9 +2223,12 @@
map._head = head;

// Optionally initialize map from iterable
var iterable = (arguments.length > 0) ? arguments[0] : void 0;
var iterable;
if (arguments.length > 0) {
iterable = arguments[0];
}
var iter, adder;
if (iterable !== null && iterable !== void 0) {
if (iterable !== null && typeof iterable !== 'undefined') {
adder = map.set;
if (!ES.IsCallable(adder)) { throw new TypeError('bad map'); }
iter = ES.GetIterator(iterable);
Expand Down

0 comments on commit b16f636

Please sign in to comment.