Permalink
Browse files

adding brackets to if()

  • Loading branch information...
1 parent a637960 commit 94184075bc2cc6c66ba184b68dc28741dd7460ff @Flet committed Apr 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/mojang/mojam/network/kryo/SnatchServer.java
@@ -41,7 +41,9 @@ public void received(Connection c, Object object) {
if (object instanceof RegisterName) {
// Ignore the object if a client has already registered a name. This is
// impossible with our client, but a hacker could send messages at any time.
- if (connection.name != null) return;
+ if (connection.name != null) {
+ return;
+ }
// Ignore the object if the name is invalid.
String name = ((RegisterName)object).name;

0 comments on commit 9418407

Please sign in to comment.