diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-07 03:19:51 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-07 03:19:51 +0200 |
commit | e173bce1b3c5ed8beb61f5940b052b2956c8d554 (patch) | |
tree | 43897eafd2a491ec83374ce9bbfe2a0c45eca6bb /src/main/java | |
parent | e1ff1aec09f691371b9b8bf8f904e194b1cf7422 (diff) | |
download | skyhanni-e173bce1b3c5ed8beb61f5940b052b2956c8d554.tar.gz skyhanni-e173bce1b3c5ed8beb61f5940b052b2956c8d554.tar.bz2 skyhanni-e173bce1b3c5ed8beb61f5940b052b2956c8d554.zip |
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt | 14 |
1 files changed, 6 insertions, 8 deletions
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<Data : TrackerData>( 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 { |