diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-21 17:34:35 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-21 17:34:35 +0100 |
commit | dd4fd8dfef25e1adf4e5daf12be70f4702382d23 (patch) | |
tree | 2956a417a58b24cc2f9b019cce1f4e9429b946d3 /src/main/java | |
parent | 8ce4327242ec7c0e0f55a32c50d0ebf2884ff85c (diff) | |
download | skyhanni-dd4fd8dfef25e1adf4e5daf12be70f4702382d23.tar.gz skyhanni-dd4fd8dfef25e1adf4e5daf12be70f4702382d23.tar.bz2 skyhanni-dd4fd8dfef25e1adf4e5daf12be70f4702382d23.zip |
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 7f31b2640..b9c88a095 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -503,13 +503,10 @@ class GardenVisitorFeatures { } if (visitor.status in setOf(VisitorAPI.VisitorStatus.WAITING, VisitorAPI.VisitorStatus.READY)) { - var newStatus: VisitorAPI.VisitorStatus if (hasItems(visitor)) { - newStatus = VisitorAPI.VisitorStatus.READY - VisitorAPI.changeStatus(visitor, newStatus, "hasItems") + VisitorAPI.changeStatus(visitor, VisitorAPI.VisitorStatus.READY, "hasItems") } else { - newStatus = VisitorAPI.VisitorStatus.WAITING - VisitorAPI.changeStatus(visitor, newStatus, "noLongerHasItems") + VisitorAPI.changeStatus(visitor, VisitorAPI.VisitorStatus.WAITING, "noLongerHasItems") } } |