From dd4fd8dfef25e1adf4e5daf12be70f4702382d23 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 21 Mar 2024 17:34:35 +0100 Subject: code cleanup --- .../skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/main/java') 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") } } -- cgit