Skip to content

Commit

Permalink
style(modules): fixed issue with linter formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carr committed May 21, 2020
1 parent b053696 commit b779335
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<FunctionResponse> => {
const handleResponse = async (
response: FunctionResponse
): Promise<FunctionResponse> => {
if ((response as any).exception) {
return Promise.reject(response);
}
Expand Down Expand Up @@ -45,7 +47,7 @@ export default abstract class Module {

return handleResponse({
getHttpResponse: () => response,
...(response.body as any)
...(response.body as any),
});
}
}

0 comments on commit b779335

Please sign in to comment.