We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9d7d53 commit 278a041Copy full SHA for 278a041
src/utility.ts
@@ -15,16 +15,11 @@ export const Binary = function (override = false, binary = '7z') {
15
__dirname,
16
'..',
17
'binaries',
18
- override === true
19
- ? process.platform + sep + 'other32'
20
- : process.platform
+ `${process.platform}${override === true ? sep + 'other32' : ''}`
21
);
22
- let filename = isWindows() ? binary + '.exe' : binary;
23
- return {
24
- path: path,
25
- filename: filename,
26
- filepath: join(path, filename),
27
- };
+ const filename = `${binary}${isWindows() ? '.exe' : ''}`;
+ const filepath = join(path, filename);
+ return { path, filename, filepath };
28
};
29
30
/**
0 commit comments