Skip to content

Commit 78b0d13

Browse files
committed
biome manual fixup.
1 parent 12170ea commit 78b0d13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

browser-extension/tests/har-view.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ app.get('/', async (_req, res) => {
133133
</body>
134134
</html>
135135
`)
136-
} catch (error) {
136+
} catch (_error) {
137137
res.status(500).send('Error listing HAR files')
138138
}
139139
})
@@ -280,15 +280,15 @@ app.get('/page/:filename/gitcasso', async (req, res) => {
280280
// Serve assets from HAR file
281281
app.get('/asset/:harname/*', async (req, res) => {
282282
try {
283-
const harname = req.params.harname + '.har'
283+
const harname = `${req.params.harname}.har`
284284
const assetPath = (req.params as any)[0] as string
285285

286286
const harData = await loadHar(harname)
287287

288288
// Find matching asset in HAR
289289
const assetEntry = harData.log.entries.find((entry: any) => {
290290
const url = new URL(entry.request.url)
291-
return url.pathname === '/' + assetPath || url.pathname.endsWith('/' + assetPath)
291+
return url.pathname === `/${assetPath}` || url.pathname.endsWith(`/${assetPath}`)
292292
})
293293

294294
if (!assetEntry) {

0 commit comments

Comments
 (0)