From 240a307df72bea00c919da8b297b60bb4c14b3f2 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:45:27 +0100 Subject: code cleanup --- .../java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt index 366e1ff3b..2dc3ca5a6 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt @@ -130,15 +130,14 @@ class BingoCardDisplay { slot: Int, done: Boolean ): BingoGoal { - var personalGoal = BingoGoal(name, description, slot, done) if (!done) { personalHiddenGoalPattern.matchMatcher(description) { BingoAPI.tips[name]?.let { - personalGoal = BingoGoal(name, it.getDescriptionLine(), slot, false) + return BingoGoal(name, it.getDescriptionLine(), slot, false) } } } - return personalGoal + return BingoGoal(name, description, slot, done) } private fun getCommunityGoal( -- cgit