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

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
aphelionz committed Sep 10, 2022
1 parent 7cd6995 commit 02005d5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import node from './node.js'
var isBrowser = new Function('try {return this===window;}catch(e){ return false;}') // eslint-disable-line
var isNode = new Function('try {return this===global;}catch(e){return false;}') // eslint-disable-line

let config;
let config

if (isBrowser()) config = browser;
if (isNode()) config = node;
if (isBrowser()) config = browser
if (isNode()) config = node

export default config;
export default config
4 changes: 2 additions & 2 deletions src/test-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const jsIpfs = {
type: 'proc',
test: true,
disposable: true,
ipfsModule: ipfsModule
ipfsModule
}
}

Expand All @@ -25,7 +25,7 @@ const goIpfs = {
test: true,
disposable: true,
args: ['--enable-pubsub-experiment'],
ipfsHttpModule: ipfsHttpModule,
ipfsHttpModule,
ipfsBin: ipfsBin.path()
}
}
Expand Down
6 changes: 4 additions & 2 deletions test/manual.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { strict as assert } from "node:assert";
/* eslint-env mocha */

import { strict as assert } from 'node:assert'

import {
connectPeers,
Expand All @@ -7,7 +9,7 @@ import {
testAPIs,
getIpfsPeerId,
waitForPeers
} from "../index.js";
} from '../index.js'

describe('Manual Workflow', function () {
Object.keys(testAPIs).forEach((api) => {
Expand Down
4 changes: 3 additions & 1 deletion test/memstore.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { strict as assert } from "node:assert"
/* eslint-env mocha */

import { strict as assert } from 'node:assert'
import { MemStore } from '../index.js'

describe('MemStore', function () {
Expand Down

0 comments on commit 02005d5

Please sign in to comment.