Add linter fixes for new AI samples (#1484)

This commit is contained in:
Oliver Dunk
2025-06-02 12:46:10 +01:00
committed by GitHub
parent 20d36c7780
commit 08e8c96c5f
4 changed files with 4 additions and 5 deletions

View File

@@ -67,11 +67,10 @@ chrome.runtime.onMessage.addListener(async ({ data }) => {
});
function isValidUrl(string) {
let url;
try {
url = new URL(string);
new URL(string);
return true;
// eslint-disable-next-line no-unused-vars
} catch (_) {
return false;
}