Skip to content

Commit acbdc73

Browse files
Autolinting
1 parent 0b66e3c commit acbdc73

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const fromIteratorToArrayIterator = list => iterator => {
1+
const fromIteratorToArrayIterator = (list) => (iterator) => {
22
const {
33
value,
4-
done
4+
done,
55
} = iterator.next();
66

77
if (done) {
@@ -11,6 +11,6 @@ const fromIteratorToArrayIterator = list => iterator => {
1111
return fromIteratorToArrayIterator([...list, value])(iterator);
1212
};
1313

14-
export default function fromIteratorToArray(iterator) {
14+
export default function fromIteratorToArray (iterator) {
1515
return fromIteratorToArrayIterator([])(iterator);
1616
}

test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
/* eslint-disable no-magic-numbers */
2-
import {test} from "tap"
2+
import {test} from "tap";
33

4-
import fromIteratorToArray from "./index"
4+
import fromIteratorToArray from "./index";
55

66
test(({same, end}) => {
77
same(
88
fromIteratorToArray(new Set([1, 2, 3]).entries()),
99
[[1, 1], [2, 2], [3, 3]]
10-
)
10+
);
1111

12-
end()
13-
})
12+
end();
13+
});
1414

1515
test(({same, end}) => {
1616
same(
1717
fromIteratorToArray(new Map([["aaa", "a"], ["bbb", "b"], ["ccc", "c"]]).entries()),
1818
[["aaa", "a"], ["bbb", "b"], ["ccc", "c"]]
19-
)
19+
);
2020

21-
end()
22-
})
21+
end();
22+
});

0 commit comments

Comments
 (0)