From 3f466981fc6d87d77b8cc6d81218b1526413e872 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Mon, 8 Feb 2021 13:35:32 +0100 Subject: [PATCH] Address review feedback --- src/extensions.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/extensions.ts b/src/extensions.ts index 916b4806..9281ca6a 100644 --- a/src/extensions.ts +++ b/src/extensions.ts @@ -59,15 +59,6 @@ export async function addExtensionDarwin( // the version may match that as well case /.*-(.*)\/(.*)@(.*)/.test(extension): matches = /.*-(.*)\/(.*)@(.*)/.exec(extension) as RegExpExecArray; - if (matches == null) { - // Shouldn't happen - add_script += await utils.getUnsupportedLog( - extension, - version, - 'darwin' - ); - return; - } add_script += await utils.joins( '\nadd_extension_from_github', ext_name, @@ -294,15 +285,6 @@ export async function addExtensionLinux( // the version may match that as well case /.*-(.*)\/(.*)@(.*)/.test(extension): matches = /.*-(.*)\/(.*)@(.*)/.exec(extension) as RegExpExecArray; - if (matches == null) { - // Shouldn't happen - add_script += await utils.getUnsupportedLog( - extension, - version, - 'linux' - ); - return; - } add_script += await utils.joins( '\nadd_extension_from_github', ext_name,