File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,15 @@ const __filename = fileURLToPath(import.meta.url);
11
11
const __dirname = dirname ( __filename ) ;
12
12
13
13
export const Binary = function ( override = false , binary = '7z' ) {
14
- let path = join (
14
+ const path = join (
15
15
__dirname ,
16
16
'..' ,
17
17
'binaries' ,
18
- override === true
19
- ? process . platform + sep + 'other32'
20
- : process . platform
18
+ `${ process . platform } ${ override === true ? sep + 'other32' : '' } `
21
19
) ;
22
- let filename = isWindows ( ) ? binary + '.exe' : binary ;
23
- return {
24
- path : path ,
25
- filename : filename ,
26
- filepath : join ( path , filename ) ,
27
- } ;
20
+ const filename = `${ binary } ${ isWindows ( ) ? '.exe' : '' } ` ;
21
+ const filepath = join ( path , filename ) ;
22
+ return { path, filename, filepath } ;
28
23
} ;
29
24
30
25
/**
You can’t perform that action at this time.
0 commit comments