make createConfig() call await
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ export async function getConfig(): Promise<typeof defaultConfig> {
|
|||||||
|
|
||||||
return configObject;
|
return configObject;
|
||||||
} catch {
|
} catch {
|
||||||
createConfig();
|
await createConfig();
|
||||||
return defaultConfig;
|
return defaultConfig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user