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

Commit 6133f4c

Browse files
committed
fix: Unnecessary io read.
1 parent b6b0daf commit 6133f4c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/browser.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Level } from 'level'
22

3-
const isBrowser = () => typeof window !== `undefined`
3+
const isBrowser = () => typeof window !== 'undefined'
44

55
// This file will be picked up by webpack into the
66
// tests bundle and the code here gets run when imported
@@ -38,4 +38,4 @@ before(async () => {
3838

3939
await Promise.all(copyFixtures)
4040
}
41-
})
41+
})

test/entry.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import rimraf from 'rimraf'
33
import { copy } from 'fs-extra'
44
import Entry, { IPLD_LINKS } from '../src/entry.js'
55
import { AccessController as _AccessController } from '../src/log.js'
6-
import { read, write } from 'orbit-db-io'
6+
import { write } from 'orbit-db-io'
77
import IdentityProvider from 'orbit-db-identity-provider'
88
import { hello, helloWorld, helloAgain } from './fixtures/v0-entries.fixture.js'
99
import { v1Entries } from './fixtures/v1-entries.fixture.js'

test/log-load.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Sorting from '../src/log-sorting.js'
55
import bigLogString from './fixtures/big-log.fixture.js'
66
import Entry, { IPLD_LINKS, getWriteFormat } from '../src/entry.js'
77
import Log from '../src/log.js'
8-
import { read, write } from 'orbit-db-io'
8+
import { write } from 'orbit-db-io'
99
import IdentityProvider from 'orbit-db-identity-provider'
1010
import Keystore from 'orbit-db-keystore'
1111
import LogCreator from './utils/log-creator.js'

0 commit comments

Comments
 (0)