Skip to content

Commit 35c3e27

Browse files
committed
misc snapshot linting
1 parent a1451c4 commit 35c3e27

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/modules/database/snapshot.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
import Reference from './reference.js';
55

66
export default class Snapshot {
7-
static key:String;
8-
static value:Object;
9-
static exists:boolean;
10-
static hasChildren:boolean;
11-
static childrenCount:Number;
12-
static childKeys:String[];
7+
static key: String;
8+
static value: Object;
9+
static exists: boolean;
10+
static hasChildren: boolean;
11+
static childrenCount: Number;
12+
static childKeys: String[];
1313

1414
ref: Object;
1515
key: string;
@@ -21,8 +21,8 @@ export default class Snapshot {
2121
childKeys: Array<string>;
2222

2323
constructor(ref: Reference, snapshot: Object) {
24-
this.ref = ref;
25-
this.key = snapshot.key;
24+
this.ref = ref;
25+
this.key = snapshot.key;
2626
this.value = snapshot.value;
2727
this.exists = snapshot.exists || true;
2828
this.priority = snapshot.priority;
@@ -41,7 +41,7 @@ export default class Snapshot {
4141
}
4242

4343
map(fn: (key: string) => mixed) {
44-
let arr = [];
44+
const arr = [];
4545
this.forEach(item => arr.push(fn(item)));
4646
return arr;
4747
}

0 commit comments

Comments
 (0)