From cddbb959f13aa29a7264174b1fc4eaa4271cf900 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Mon, 3 Apr 2023 21:14:12 +0200 Subject: chore: activate eslint no-else-return (#2009) --- scripts/apidoc/diff.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'scripts/apidoc/diff.ts') diff --git a/scripts/apidoc/diff.ts b/scripts/apidoc/diff.ts index 913062c8..654f44b0 100644 --- a/scripts/apidoc/diff.ts +++ b/scripts/apidoc/diff.ts @@ -35,11 +35,7 @@ async function loadLocal(path: string): Promise { * @param source The source to load the diff index from. */ async function load(source: string): Promise { - if (source.startsWith('https://')) { - return loadRemote(source); - } else { - return loadLocal(source); - } + return source.startsWith('https://') ? loadRemote(source) : loadLocal(source); } /** -- cgit v1.2.3