From e173bce1b3c5ed8beb61f5940b052b2956c8d554 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 7 May 2024 03:19:51 +0200 Subject: code cleanup --- .../at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt index 170efc84c..5f7265120 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt @@ -50,14 +50,12 @@ open class SkyHanniTracker( fun isInventoryOpen() = inventoryOpen - fun resetCommand() { - ChatUtils.clickableChat( - "Are you sure you want to reset your total $name? Click here to confirm.", - onClick = { - reset(DisplayMode.TOTAL, "Reset total $name!") - } - ) - } + fun resetCommand() = ChatUtils.clickableChat( + "Are you sure you want to reset your total $name? Click here to confirm.", + onClick = { + reset(DisplayMode.TOTAL, "Reset total $name!") + } + ) fun modify(modifyFunction: (Data) -> Unit) { getSharedTracker()?.let { -- cgit