Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit 6b0ea3c

Browse files
committed
chore: fix linting
1 parent 8e36a74 commit 6b0ea3c

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

src/sharding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ShardingDatastore {
9494
return this.child.batch()
9595
}
9696

97-
query (q) {
97+
query (q) {
9898
const tq = {
9999
keysOnly: q.keysOnly,
100100
offset: q.offset,

src/tiered.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class TieredDatastore {
8787
}
8888
}
8989

90-
query (q) {
90+
query (q) {
9191
return this.stores[this.stores.length - 1].query(q)
9292
}
9393
}

test/shard.spec.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -62,39 +62,39 @@ describe('shard', () => {
6262
'/repo/flatfs/shard/v1/next-to-last/2'
6363
)
6464
})
65+
})
6566

66-
describe('parsesShardFun', () => {
67-
it('errors', () => {
68-
const errors = [
69-
'',
70-
'shard/v1/next-to-last/2',
71-
'/repo/flatfs/shard/v2/next-to-last/2',
72-
'/repo/flatfs/shard/v1/other/2',
73-
'/repo/flatfs/shard/v1/next-to-last/'
74-
]
67+
describe('parsesShardFun', () => {
68+
it('errors', () => {
69+
const errors = [
70+
'',
71+
'shard/v1/next-to-last/2',
72+
'/repo/flatfs/shard/v2/next-to-last/2',
73+
'/repo/flatfs/shard/v1/other/2',
74+
'/repo/flatfs/shard/v1/next-to-last/'
75+
]
7576

76-
errors.forEach((input) => {
77-
expect(
78-
() => shard.parseShardFun(input)
79-
).to.throw()
80-
})
77+
errors.forEach((input) => {
78+
expect(
79+
() => shard.parseShardFun(input)
80+
).to.throw()
8181
})
82+
})
8283

83-
it('success', () => {
84-
const success = [
85-
'prefix',
86-
'suffix',
87-
'next-to-last'
88-
]
84+
it('success', () => {
85+
const success = [
86+
'prefix',
87+
'suffix',
88+
'next-to-last'
89+
]
8990

90-
success.forEach((name) => {
91-
const n = Math.floor(Math.random() * 100)
92-
expect(
93-
shard.parseShardFun(
94-
`/repo/flatfs/shard/v1/${name}/${n}`
95-
).name
96-
).to.eql(name)
97-
})
91+
success.forEach((name) => {
92+
const n = Math.floor(Math.random() * 100)
93+
expect(
94+
shard.parseShardFun(
95+
`/repo/flatfs/shard/v1/${name}/${n}`
96+
).name
97+
).to.eql(name)
9898
})
9999
})
100100
})

0 commit comments

Comments
 (0)