From d985550110de4825a052ba14deeda6ad43091a47 Mon Sep 17 00:00:00 2001 From: jamesmaa Date: Thu, 22 Aug 2024 11:00:19 -0700 Subject: [PATCH] Remove guard clause --- ext/js/background/backend.js | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 293e7524d1..fa99ccfdee 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -900,7 +900,6 @@ export class Backend { /** @type {import('api').ApiHandler<'isTextLookupWorthy'>} */ _onApiIsTextLookupWorthy({text, language}) { - if (text === null) { return false; } return isTextLookupWorthy(text, language); }