diff options
Diffstat (limited to 'packages/taler-wallet-core/src/headless/NodeHttpLib.ts')
-rw-r--r-- | packages/taler-wallet-core/src/headless/NodeHttpLib.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts index 5eefb24f9..68a549274 100644 --- a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts +++ b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts @@ -31,7 +31,7 @@ import { OperationFailedError, makeErrorDetails } from "../operations/errors"; import { TalerErrorCode } from "../TalerErrorCode"; import { URL } from "../util/url"; import { Logger } from "../util/logging"; -import { bytesToString } from '../crypto/talerCrypto'; +import { bytesToString } from "../crypto/talerCrypto"; const logger = new Logger("NodeHttpLib.ts"); @@ -92,10 +92,10 @@ export class NodeHttpLib implements HttpRequestLibrary { ); } - const makeText = async(): Promise<string> => { + const makeText = async (): Promise<string> => { const respText = new Uint8Array(resp.data); return bytesToString(respText); - } + }; const makeJson = async (): Promise<any> => { let responseJson; @@ -152,7 +152,6 @@ export class NodeHttpLib implements HttpRequestLibrary { json: makeJson, bytes: makeBytes, }; - } async get(url: string, opt?: HttpRequestOptions): Promise<HttpResponse> { return this.fetch(url, { |