From 1b4cd4d29b142b6b02fd8eeecdaa9729af164b2c Mon Sep 17 00:00:00 2001 From: osohyun0224 <53892427+osohyun0224@users.noreply.github.com> Date: Sat, 25 May 2024 16:26:14 +0900 Subject: [PATCH] fix(eslint) : Fix ESLint Errors --- packages/html-reporter/src/testCaseView.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/html-reporter/src/testCaseView.tsx b/packages/html-reporter/src/testCaseView.tsx index a038f44785..26cc4d1b73 100644 --- a/packages/html-reporter/src/testCaseView.tsx +++ b/packages/html-reporter/src/testCaseView.tsx @@ -74,9 +74,8 @@ function renderAnnotationDescription(description: string) { function renderAnnotationLink(url: string) { try { - if (['http:', 'https:'].includes(new URL(url).protocol)) { + if (['http:', 'https:'].includes(new URL(url).protocol)) return {url}; - } } catch {} return url; }