From fb2e2f89935240666de66e4b2c11125cb3b2943d Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 7 Apr 2020 13:37:32 +0530 Subject: more lint fixes --- src/util/helpers.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/util/helpers.ts') diff --git a/src/util/helpers.ts b/src/util/helpers.ts index 0e19d7aba..7cd9e4234 100644 --- a/src/util/helpers.ts +++ b/src/util/helpers.ts @@ -39,7 +39,7 @@ export function amountToPretty(amount: AmountJson): string { * * See http://api.taler.net/wallet.html#general */ -export function canonicalizeBaseUrl(url: string) { +export function canonicalizeBaseUrl(url: string): string { if (!url.startsWith("http") && !url.startsWith("https")) { url = "https://" + url; } @@ -145,13 +145,3 @@ export function strcmp(s1: string, s2: string): number { } return 0; } - -/** - * Run a function and return its result. - * - * Used as a nicer-looking way to do immediately invoked function - * expressions (IFFEs). - */ -export function runBlock(f: () => T) { - return f(); -} -- cgit v1.2.3