From d92396784ebe6e7ccef1e10e881153b68e40874a Mon Sep 17 00:00:00 2001 From: limited_dev Date: Thu, 29 Jun 2023 11:14:13 +0200 Subject: [PATCH] feat: improved isEmpty check Signed-off-by: limited_dev --- .../kotlin/net/moonleay/lilJudd/features/AvailabilityManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/net/moonleay/lilJudd/features/AvailabilityManager.kt b/src/main/kotlin/net/moonleay/lilJudd/features/AvailabilityManager.kt index 9dd66aa..3a19477 100644 --- a/src/main/kotlin/net/moonleay/lilJudd/features/AvailabilityManager.kt +++ b/src/main/kotlin/net/moonleay/lilJudd/features/AvailabilityManager.kt @@ -88,7 +88,7 @@ object AvailabilityManager : IFeature { continue // This channel does not exist anymore. val c = Bot.bot.kordRef.getChannelOf(Snowflake(data.channelid))!! // Get the channel as MessageChannel - if (roleMap.size < 1) { + if (roleMap.isEmpty()) { Logger.out("No saved roles. Canceling.") return }