From 845ee8b316a46d60d62db792dadb96de9e609cb5 Mon Sep 17 00:00:00 2001 From: josh Date: Thu, 8 Jun 2023 17:40:55 -0400 Subject: [PATCH] Remove the promise return statement Signed-off-by: josh --- plugins/nomad/src/api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/nomad/src/api.ts b/plugins/nomad/src/api.ts index 814bba5b6d..99f8b9906c 100644 --- a/plugins/nomad/src/api.ts +++ b/plugins/nomad/src/api.ts @@ -133,9 +133,9 @@ export class NomadHttpApi implements NomadApi { ); if (!resp.ok) throw await FetchError.forResponse(resp); - return Promise.resolve({ + return { allocations: await resp.json(), - }); + }; } // TODO: pagination @@ -153,8 +153,8 @@ export class NomadHttpApi implements NomadApi { const respJson = await resp.json(); - return Promise.resolve({ + return { versions: respJson.Versions, - }); + }; } }