From f332d61fb68fbc394f31337ddeb7d1fc114772d0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Dec 2020 16:45:15 +0100 Subject: formatting pass --- packages/taler-wallet-core/src/util/http.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'packages/taler-wallet-core/src/util/http.ts') diff --git a/packages/taler-wallet-core/src/util/http.ts b/packages/taler-wallet-core/src/util/http.ts index 1ec9c2f50..4b0a8e75a 100644 --- a/packages/taler-wallet-core/src/util/http.ts +++ b/packages/taler-wallet-core/src/util/http.ts @@ -17,7 +17,7 @@ /** * Helpers for doing XMLHttpRequest-s that are based on ES6 promises. * Allows for easy mocking for test cases. - * + * * The API is inspired by the HTML5 fetch API. */ @@ -91,7 +91,7 @@ export class Headers { toJSON(): any { const m: Record = {}; - this.headerMap.forEach((v, k) => m[k] = v); + this.headerMap.forEach((v, k) => (m[k] = v)); return m; } } @@ -120,10 +120,7 @@ export interface HttpRequestLibrary { /** * Make an HTTP POST request with a JSON body. */ - fetch( - url: string, - opt?: HttpRequestOptions, - ): Promise; + fetch(url: string, opt?: HttpRequestOptions): Promise; } type TalerErrorResponse = { -- cgit v1.2.3