Skip to content

Commit 6ade606

Browse files
authored
Merge pull request #492 from workingjubilee/jubilee-lints
Solves easy lints
2 parents 2021870 + b9ceea0 commit 6ade606

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/javascript/tests/core/erlang_compat/maps_spec.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ test('put/3', (t) => {
6767

6868
test('take/2', (t) => {
6969
const myMap = new Map([['a', 1], ['b', 2]]);
70-
let a;
71-
let result;
72-
[a, result] = Core.maps.take('a', myMap);
70+
const [a, result] = Core.maps.take('a', myMap);
7371
t.is(a, 1);
7472
t.is(result.has('a'), false);
7573
});

src/javascript/tests/with.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Core from '../lib/core';
21
import test from 'ava';
2+
import Core from '../lib/core';
33

44
const Patterns = Core.Patterns;
55
const SpecialForms = Core.SpecialForms;
@@ -31,7 +31,7 @@ test('with', (t) => {
3131

3232
const value = SpecialForms._with(
3333
[new Tuple(Symbol.for('ok'), $), () => map_fetch(opts, 'width')],
34-
[new Tuple(Symbol.for('ok'), $), width => map_fetch(opts, 'height')],
34+
[new Tuple(Symbol.for('ok'), $), () => map_fetch(opts, 'height')],
3535
(width, height) => new Tuple(Symbol.for('ok'), width * height),
3636
);
3737

0 commit comments

Comments
 (0)