mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-05 05:07:26 +00:00
src/server/Gatekeeper.ts
This commit is contained in:
@@ -29,7 +29,7 @@ export interface Gatekeeper {
|
|||||||
let gk: Gatekeeper | null = null;
|
let gk: Gatekeeper | null = null;
|
||||||
|
|
||||||
async function getGatekeeperCached(): Promise<Gatekeeper> {
|
async function getGatekeeperCached(): Promise<Gatekeeper> {
|
||||||
if (gk != null) {
|
if (gk !== null) {
|
||||||
return gk;
|
return gk;
|
||||||
}
|
}
|
||||||
return getGatekeeper().then((g) => {
|
return getGatekeeper().then((g) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user