Skip to content

Commit

Permalink
chore: small assorted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Oct 5, 2023
1 parent c0acf01 commit 2b26f56
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/.npm-upgrade.json
Expand Up @@ -21,4 +21,4 @@
"reason": "dropped support for node 16"
}
}
}
}
2 changes: 1 addition & 1 deletion core/components/FxRunner/outputHandler.ts
Expand Up @@ -67,7 +67,7 @@ export default class OutputHandler {
return;
}

//Handle bind errors
//Handle nucleus auth
if (channel == 'citizen-server-impl' && data.type == 'nucleus_connected') {
if (typeof data.url !== 'string') {
console.error(`FD3 nucleus_connected event without URL.`);
Expand Down
1 change: 0 additions & 1 deletion core/components/UpdateChecker.ts
Expand Up @@ -4,7 +4,6 @@ import { z } from "zod";
import got from '@core/extras/got.js';
import { txEnv } from '@core/globalData';
import consoleFactory from '@extras/console';
import { convars } from '@core/globalData';
const console = consoleFactory(modulename);


Expand Down
2 changes: 1 addition & 1 deletion core/webroutes/fxserver/downloadLog.js
Expand Up @@ -16,7 +16,7 @@ export default async function FXServerDownloadLog(ctx) {

let readFile;
try {
//NOTE: thy the fuck are errors from `createReadStream` not being caught? Well, using readFileSync for now...
//NOTE: why the fuck are errors from `createReadStream` not being caught? Well, using readFileSync for now...
// readFile = fs.createReadStream(globals.fxRunner.config.logPath);
readFile = fs.readFileSync(globals.fxRunner.config.logPath);
} catch (error) {
Expand Down

0 comments on commit 2b26f56

Please sign in to comment.