Skip to content

Commit 41f5abd

Browse files
Nakshatra SharmaNakshatra Sharma
authored andcommitted
refactor: minimize catch blocks - remove console.warn statements
1 parent f5200c9 commit 41f5abd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/simulator/src/Verilog2CV.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {
22
createNewCircuitScope,
33
switchCircuit,
44
changeCircuitName,
5-
scopeList,
65
} from './circuit'
76
import SubCircuit from './subcircuit'
87
import { simulationArea } from './simulationArea'
@@ -273,9 +272,7 @@ export default async function generateVerilogCircuit(
273272
apiUrl = `https://circuitverse.org${apiUrl}`
274273
try {
275274
fetchFn = (await import('@tauri-apps/plugin-http')).fetch
276-
} catch (e) {
277-
console.warn('Failed to load Tauri HTTP plugin:', e)
278-
}
275+
} catch (e) { /* ignore */ }
279276
}
280277

281278
try {
@@ -316,9 +313,7 @@ export default async function generateVerilogCircuit(
316313
else if (typeof error.json === 'function') {
317314
try {
318315
msg = (await error.json()).message || msg
319-
} catch (e) {
320-
console.warn('Failed to parse error JSON:', e)
321-
}
316+
} catch (e) { /* ignore */ }
322317
}
323318
setVerilogOutput(msg, 'error')
324319
}

0 commit comments

Comments
 (0)