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

Commit b5c0e8a

Browse files
author
Gordon Hall
committed
fix linting errors
1 parent ef157b1 commit b5c0e8a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

bin/storjshare-start.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,14 @@ const configPath = path.isAbsolute(storjshare_start.config) ?
2323
path.normalize(storjshare_start.config) :
2424
path.join(process.cwd(), storjshare_start.config);
2525

26-
if (storjshare_start.detached) {
27-
runDetachedShare();
28-
} else {
29-
runManagedShare();
30-
}
31-
3226
function runDetachedShare() {
3327
const scriptPath = path.join(__dirname, '../script/farmer.js');
3428
const shareProc = spawn(scriptPath, ['--config', configPath]);
3529

3630
process.stdin.pipe(shareProc.stdin);
3731
shareProc.stdout.pipe(process.stdout);
3832
shareProc.stderr.pipe(process.stderr);
39-
shareProc.on('exit', (code) => process.exit(code))
33+
shareProc.on('exit', (code) => process.exit(code));
4034
}
4135

4236
function runManagedShare() {
@@ -51,3 +45,11 @@ function runManagedShare() {
5145
});
5246
});
5347
}
48+
49+
if (storjshare_start.detached) {
50+
runDetachedShare();
51+
} else {
52+
runManagedShare();
53+
}
54+
55+

0 commit comments

Comments
 (0)