Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/wasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ if (process.argv[2] === '--docker') {
}

const hasApk = (function () {
try { execSync('command -v apk'); return true } catch (error) { return false }
try { execSync('command -v apk'); return true } catch { return false }
})()
const hasOptimizer = (function () {
try { execSync(`${WASM_OPT} --version`); return true } catch (error) { return false }
try { execSync(`${WASM_OPT} --version`); return true } catch { return false }
})()
if (hasApk) {
// Gather information about the tools used for the build
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/snapshot-testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function basicSnapshotExample () {
const { unlink } = require('node:fs/promises')
await unlink(snapshotPath)
console.log('\n🗑️ Cleaned up temporary snapshot file')
} catch (error) {
} catch {
// File might not exist or already be deleted
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/dispatcher/client-h1.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function lazyllhttp () {
let mod
try {
mod = new WebAssembly.Module(require('../llhttp/llhttp_simd-wasm.js'))
} catch (e) {
} catch {
/* istanbul ignore next */

// We could check if the error was caused by the simd option not
Expand Down
Loading