Skip to content

Commit

Permalink
Apply prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed May 29, 2023
1 parent 93aad9c commit e02c892
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ If you'd like to support the project financially, Ryujinx has an active Patreon

All developers working on the project do so in their free time, but the project has several expenses:

* Hackable Nintendo Switch consoles to reverse-engineer the hardware
* Additional computer hardware for testing purposes (e.g. GPUs to diagnose graphical bugs, etc.)
* Licenses for various software development tools (e.g. Jetbrains, IDA)
* Web hosting and infrastructure maintenance (e.g. LDN servers)
- Hackable Nintendo Switch consoles to reverse-engineer the hardware
- Additional computer hardware for testing purposes (e.g. GPUs to diagnose graphical bugs, etc.)
- Licenses for various software development tools (e.g. Jetbrains, IDA)
- Web hosting and infrastructure maintenance (e.g. LDN servers)

All funds received through Patreon are considered a donation to support the project. Patrons receive early access to progress reports and exclusive access to developer interviews.

Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const logger = loggerInstance.child({

// Init express server
export const app = express();
app.set('view engine', 'ejs');
app.set("view engine", "ejs");

// This is set by NODE_ENV
if (app.get("env") === "production") {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { app, logger } from "./app";
import http from "http";

const server = http.createServer(app);
server.listen(parseInt(env.PORT || "3000"), (env.HOST || "127.0.0.1"));
server.listen(parseInt(env.PORT || "3000"), env.HOST || "127.0.0.1");

server.on("error", (error: Error) => {
logger.error("An error occurred.", error);
Expand Down
22 changes: 11 additions & 11 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import { logger } from "./app";
import { loggerDefaultMetadata } from "./utils";

export function requestLogger(req: Request, res: Response, next: NextFunction) {
logger.debug("Incoming request.", loggerDefaultMetadata(req));
next();
logger.debug("Incoming request.", loggerDefaultMetadata(req));
next();
}

export function errorLogger(
err: Error,
req: Request,
res: Response,
next: NextFunction
err: Error,
req: Request,
res: Response,
next: NextFunction
) {
logger.error(err.message, {
error: err,
...loggerDefaultMetadata(req),
});
next(err);
logger.error(err.message, {
error: err,
...loggerDefaultMetadata(req),
});
next(err);
}

0 comments on commit e02c892

Please sign in to comment.