From 3a5263c4e92661b3982deb42a048e5a167c12987 Mon Sep 17 00:00:00 2001 From: ITOH Date: Tue, 24 May 2022 22:01:44 +0200 Subject: [PATCH] style: deno fmt --- rest/convertRestError.ts | 7 +++---- rest/rest.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/rest/convertRestError.ts b/rest/convertRestError.ts index 4379a4691..5aa390fef 100644 --- a/rest/convertRestError.ts +++ b/rest/convertRestError.ts @@ -1,7 +1,6 @@ - import { RestRequestRejection } from "./rest.ts"; export function convertRestError(errorStack: Error, data: RestRequestRejection): Error { - errorStack.message = `[${data.status}] ${data.error}`; - return errorStack; -} \ No newline at end of file + errorStack.message = `[${data.status}] ${data.error}`; + return errorStack; +} diff --git a/rest/rest.ts b/rest/rest.ts index e3c084bc3..408673837 100644 --- a/rest/rest.ts +++ b/rest/rest.ts @@ -9,7 +9,7 @@ import { processRequestHeaders } from "./processRequestHeaders.ts"; import { runMethod } from "./runMethod.ts"; import { runProxyMethod } from "./runProxyMethod.ts"; import { simplifyUrl } from "./simplifyUrl.ts"; -import { convertRestError } from "./convertRestError.ts" +import { convertRestError } from "./convertRestError.ts"; export const rest = { /** The bot token for this rest client. */