File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ if (process.argv[2] === '--docker') {
6969}
7070
7171const hasApk = ( function ( ) {
72- try { execSync ( 'command -v apk' ) ; return true } catch ( error ) { return false }
72+ try { execSync ( 'command -v apk' ) ; return true } catch { return false }
7373} ) ( )
7474const hasOptimizer = ( function ( ) {
75- try { execSync ( `${ WASM_OPT } --version` ) ; return true } catch ( error ) { return false }
75+ try { execSync ( `${ WASM_OPT } --version` ) ; return true } catch { return false }
7676} ) ( )
7777if ( hasApk ) {
7878 // Gather information about the tools used for the build
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ async function basicSnapshotExample () {
9292 const { unlink } = require ( 'node:fs/promises' )
9393 await unlink ( snapshotPath )
9494 console . log ( '\n🗑️ Cleaned up temporary snapshot file' )
95- } catch ( error ) {
95+ } catch {
9696 // File might not exist or already be deleted
9797 }
9898 }
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ function lazyllhttp () {
6666 let mod
6767 try {
6868 mod = new WebAssembly . Module ( require ( '../llhttp/llhttp_simd-wasm.js' ) )
69- } catch ( e ) {
69+ } catch {
7070 /* istanbul ignore next */
7171
7272 // We could check if the error was caused by the simd option not
You can’t perform that action at this time.
0 commit comments