Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
earldouglas committed Jan 21, 2015
1 parent 79d65f2 commit 5e6a427
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions .jshintrc

This file was deleted.

4 changes: 2 additions & 2 deletions lib/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ function _cons(head, tail) {
}

function list(head, tail) {
if (tail == null) {
if (tail === undefined || tail === null) {
return list(head, _nil);
} else if (head == null) {
} else if (head === undefined || head === null) {
return tail;
} else {
return _cons(head, tail);
Expand Down
2 changes: 2 additions & 0 deletions test/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ exports.examples = {
function expensiveFn(n) {
for (var i = 0; i < 10000; i++) {
for (var j = 0; j < 10000; j++) {
i = i;
}
}
return n;
Expand Down Expand Up @@ -86,6 +87,7 @@ exports.examples = {
function expensiveFn(n) {
for (var i = 0; i < 10000; i++) {
for (var j = 0; j < 10000; j++) {
i = i;
}
}
return n;
Expand Down

0 comments on commit 5e6a427

Please sign in to comment.