fix: remove one-time variable

pull/243/head
Josh Moore 1 year ago
parent f166d31b2c
commit 4d72448cf3

@ -56,9 +56,8 @@ async function main() {
}
// Attempt to load user configuration
const readUserConfig = (): Promise<void> => new Promise((resolve) =>
UserConfig.readConfigFile().then(() => resolve(void 0)).catch((err) => (err.code && err.code === 'ENOENT' ? {} : console.error(err), resolve(void 0))));
await readUserConfig();
await new Promise((resolve) => UserConfig.readConfigFile().then(() => resolve(void 0))
.catch((err) => (err.code && err.code === 'ENOENT' ? {} : console.error(err), resolve(void 0))));
// Set up Express
const app = express();

Loading…
Cancel
Save