From b779335818067d9b852774d546ca37a27cd837c3 Mon Sep 17 00:00:00 2001 From: Luke Carr Date: Thu, 21 May 2020 09:40:05 +0100 Subject: [PATCH] style(modules): fixed issue with linter formatting --- src/modules/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/index.ts b/src/modules/index.ts index f0042f7..613f321 100644 --- a/src/modules/index.ts +++ b/src/modules/index.ts @@ -8,7 +8,9 @@ import FunctionResponse from "../functions/response"; * * @param body A JSON body returned by a Moodle API call. */ -const handleResponse = async (response: FunctionResponse): Promise => { +const handleResponse = async ( + response: FunctionResponse +): Promise => { if ((response as any).exception) { return Promise.reject(response); } @@ -45,7 +47,7 @@ export default abstract class Module { return handleResponse({ getHttpResponse: () => response, - ...(response.body as any) + ...(response.body as any), }); } }