Skip to content

Commit

Permalink
style(web): fix indentation and remove unnecessary async
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccs committed Apr 6, 2024
1 parent 2ffd4f8 commit 720cd45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/backend/src/routes/firewall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ firewallRoute.get("/", async (req, res) => {
})

// Trigger a firewall configuration update
firewallRoute.post("/", async (req, res) => {
firewallRoute.post("/", (req, res) => {
if(!isFirewallConnected) {
return res.status(409).json({
error: "The firewall is not connected, can't update the configuration"
Expand Down
2 changes: 1 addition & 1 deletion web/backend/src/socket/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ socketServer.on("listening", () => {
console.info(`Socket server listening on port ${process.env.SOCKET_PORT}`)
})

socketServer.on("connection", async socket => {
socketServer.on("connection", socket => {
const { remoteAddress, remotePort } = socket

console.info(`A connection with ${remoteAddress}:${remotePort} was established`)
Expand Down

0 comments on commit 720cd45

Please sign in to comment.