summaryrefslogtreecommitdiff
path: root/src/util/helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/helpers.ts')
-rw-r--r--src/util/helpers.ts12
1 files changed, 1 insertions, 11 deletions
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<T>(f: () => T) {
- return f();
-}