Skip to content

Commit

Permalink
small deno-client fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Aug 20, 2023
1 parent c13428a commit 688db5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deno-client/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export async function getResource(
const workspace = getWorkspace();
path = path ?? getStatePath();
try {
return ResourceService.getResourceValueInterpolated({ workspace, path });
return await ResourceService.getResourceValueInterpolated({
workspace,
path,
});
} catch (e: any) {
if (undefinedIfEmpty && e.status === 404) {
return undefined;
Expand Down

0 comments on commit 688db5d

Please sign in to comment.