@@ -73,7 +73,9 @@ async function downloadCLI(url, checksums) {
7373 const checksum = await fileSHA256 ( pathToCLIZip ) ;
7474
7575 if ( ! checksums . includes ( checksum ) ) {
76- throw new Error ( `Mismatched checksum: expected one of ${ checksums . join ( ', ' ) } , but got ${ checksum } ` ) ;
76+ throw new Error (
77+ `Mismatched checksum: expected one of ${ checksums . join ( ', ' ) } , but got ${ checksum } ` ,
78+ ) ;
7779 }
7880
7981 core . debug ( 'SHA256 hash verified successfully' ) ;
@@ -92,21 +94,18 @@ async function downloadCLI(url, checksums) {
9294
9395async function installWrapper ( pathToCLI ) {
9496 // Move the original tflint binary to a new location
95- await io . mv (
96- path . join ( pathToCLI , 'tflint' ) ,
97- path . join ( pathToCLI , 'tflint-bin' )
98- ) ;
97+ await io . mv ( path . join ( pathToCLI , 'tflint' ) , path . join ( pathToCLI , 'tflint-bin' ) ) ;
9998
10099 // Copy the wrapper script to the tflint binary location
101100 await io . cp (
102101 path . resolve ( path . join ( __dirname , '..' , 'wrapper' , 'dist' , 'index.js' ) ) ,
103- path . join ( pathToCLI , 'tflint' )
102+ path . join ( pathToCLI , 'tflint' ) ,
104103 ) ;
105104
106105 // Copy the wrapper script package.json to the tflint binary location
107106 await io . cp (
108107 path . resolve ( path . join ( __dirname , '..' , 'wrapper' , 'dist' , 'package.json' ) ) ,
109- path . join ( pathToCLI , 'package.json' )
108+ path . join ( pathToCLI , 'package.json' ) ,
110109 ) ;
111110
112111 core . exportVariable ( 'TFLINT_CLI_PATH' , pathToCLI ) ;
0 commit comments