Skip to content

Commit d898d0b

Browse files
committed
Merge branch 'getoperation' of https://github.com/Nazeh/hyperbee into getoperation
2 parents 8cbd971 + 456c67c commit d898d0b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ class Hyperbee {
345345

346346
async getOperation (seq) {
347347
if (seq === 0) return null
348-
if (!seq) seq = this._feed.length - 1
349348

350349
const block = await this.getBlock(seq)
351350
return block.operation()

test/all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ test('get header out', async function (t) {
397397
t.is(h.protocol, 'hyperbee')
398398
})
399399

400-
test('getOperation', async t => {
400+
test('getOperation', async function (t) {
401401
const db = create()
402402
await db.ready()
403403

0 commit comments

Comments
 (0)