From 78cde12186965aecd28aa76f5962548c8c7b5036 Mon Sep 17 00:00:00 2001 From: Trevor Flynn Date: Wed, 13 Sep 2017 12:23:28 -0700 Subject: [PATCH] Code cleanup --- .../src/plugins/skill/firemaking/src/fireamaking_data.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/game/src/plugins/skill/firemaking/src/fireamaking_data.kt b/game/src/plugins/skill/firemaking/src/fireamaking_data.kt index 31748ead0..4a130159d 100644 --- a/game/src/plugins/skill/firemaking/src/fireamaking_data.kt +++ b/game/src/plugins/skill/firemaking/src/fireamaking_data.kt @@ -17,11 +17,4 @@ val FIRE_OBJ = 2732 val ASH = 592 val LIGHT_ANIMATION = Animation(733) -fun lookupLog(id: Int): Log? { - for (log in Log.values()) { - if (log.id == id) { - return log; - } - } - return null -} \ No newline at end of file +fun lookupLog(id: Int): Log? = Log.values().find { it.id == id } \ No newline at end of file