Skip to content

Commit ab04361

Browse files
committed
less indent
1 parent 15772f2 commit ab04361

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/custom-session-next-auth/session.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const sessionSecret = '-- DEV COOKIE SECRET; CHANGE ME --';
1414
let _keystoneContext: Context = (globalThis as any)._keystoneContext;
1515

1616
async function getKeystoneContext() {
17-
if (!_keystoneContext) {
18-
// TODO: this could probably be better
19-
_keystoneContext = getContext(config, await import('.myprisma/client'));
20-
if (process.env.NODE_ENV !== 'production') {
21-
(globalThis as any)._keystoneContext = _keystoneContext;
22-
}
17+
if (_keystoneContext) return _keystoneContext;
18+
19+
// TODO: this could probably be better
20+
_keystoneContext = getContext(config, await import('.myprisma/client'));
21+
if (process.env.NODE_ENV !== 'production') {
22+
(globalThis as any)._keystoneContext = _keystoneContext;
2323
}
2424
return _keystoneContext;
2525
}

0 commit comments

Comments
 (0)