提交 9625ae5d 编写于 作者: D Dmitry Jemerov

remove ?. which is now redundant thanks to nullability inference

上级 98459cfd
......@@ -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)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册