remove ?. which is now redundant thanks to nullability inference

This commit is contained in:
Dmitry Jemerov
2011-06-15 17:36:57 +02:00
parent 98459cfdcb
commit 9625ae5d95
+2 -2
View File
@@ -75,7 +75,7 @@ class MoveCommand: Command {
return
}
p.room = room as World.Room
room?.world.describeRoom(p.room)
room.world.describeRoom(p.room)
}
}
@@ -110,6 +110,6 @@ fun main(args: Array<String>) {
if (command === null)
System.out?.println("Unrecognized command");
else
command?.execute(p)
command.execute(p)
}
}