From b347afc70c305b47860a40bac43c3fe407a3c25a Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 14 Jan 2023 11:27:51 +0530 Subject: chore: prettier --- src/context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/context.ts') diff --git a/src/context.ts b/src/context.ts index adc0be5..fe33731 100644 --- a/src/context.ts +++ b/src/context.ts @@ -116,7 +116,7 @@ export const createContext = (options: CtxOptions): Ctx => { evaluateType, newScope() { - environment.unshift(new Map) + environment.unshift(new Map()) }, addToScope(name, resKey) { if (environment.length === 0) ctx.newScope() @@ -127,7 +127,7 @@ export const createContext = (options: CtxOptions): Ctx => { environment.shift() }, getKeyInScope(name) { - return environment.find(scope => scope.has(name))?.get(name) + return environment.find((scope) => scope.has(name))?.get(name) }, withScope: (fn) => async () => { ctx.newScope() -- cgit v1.3.1