Skip to content

Commit 2b8c720

Browse files
author
Sharon Rolel
committed
code style
1 parent 9893810 commit 2b8c720

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/simple-map.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
export default class SimpleMap {
2-
constructor() {
2+
constructor () {
33
this.keys = [];
44
this.values = [];
55
}
66

7-
get(key) {
7+
get (key) {
88
const index = this.keys.indexOf(key);
9-
if (index === -1) {
10-
return;
11-
}
9+
1210
return this.values[index];
1311
}
14-
15-
set(key, value) {
12+
13+
set (key, value) {
1614
this.keys.push(key);
1715
this.values.push(value);
16+
1817
return value;
1918
}
20-
}
19+
}

0 commit comments

Comments
 (0)