This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const debug = require ( 'debug' )
4
- const { isCI } = require ( 'ci-info' )
5
4
6
5
const log = debug ( 'jsipfs:mfs-preload' )
7
6
log . error = debug ( 'jsipfs:mfs-preload:error' )
8
7
9
8
module . exports = ( self ) => {
10
9
const options = self . _options . preload || { }
11
- options . enabled = options . enabled == null
12
- ? ! ( isCI || process . env . NODE_ENV === 'test' )
13
- : Boolean ( options . enabled )
14
10
options . interval = options . interval || 30 * 1000
15
11
16
12
if ( ! options . enabled ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ const retry = require('async/retry')
5
5
const toUri = require ( 'multiaddr-to-uri' )
6
6
const debug = require ( 'debug' )
7
7
const CID = require ( 'cids' )
8
- const { isCI } = require ( 'ci-info' )
9
8
const preload = require ( './runtime/preload-nodejs' )
10
9
11
10
const log = debug ( 'jsipfs:preload' )
@@ -15,9 +14,7 @@ const noop = (err) => { if (err) log.error(err) }
15
14
16
15
module . exports = self => {
17
16
const options = self . _options . preload || { }
18
- options . enabled = options . enabled == null
19
- ? ! ( isCI || process . env . NODE_ENV === 'test' )
20
- : Boolean ( options . enabled )
17
+ options . enabled = Boolean ( options . enabled )
21
18
options . addresses = options . addresses || [ ]
22
19
23
20
if ( ! options . enabled || ! options . addresses . length ) {
You can’t perform that action at this time.
0 commit comments