Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Rubesh <rubesh77@gmail.com>
  • Loading branch information
zheng-ze and sp4ce-cowboy authored Apr 20, 2024
1 parent 65b35fd commit 1c410d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TowerForge/TowerForge/Networking/RoomNetwork/GameRoom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ class GameRoom {
let roomStateRef = FirebaseDatabaseReference(.Rooms).child(roomName).child("gameMode")
roomStateRef.setValue(mode.rawValue) { error, _ in
if let error = error {
print("Error updating game mode: \(error.localizedDescription)")
Logger.log("Error updating game mode: \(error.localizedDescription)", self)
} else {
self.gameMode = mode
print("Game mode updated successfully.")
Logger.log("Game mode updated successfully.", self)
}
}
}
Expand Down

0 comments on commit 1c410d2

Please sign in to comment.