aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-18 20:45:23 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-18 20:45:23 +0100
commit41df011a8b1892ac69a8903949fddc1b6bcc913c (patch)
tree0c76c1d1df804208ba48256e16e774ac7830661d
parenta5753a95f4726005a8ad854f684f07e483037ade (diff)
downloadskyhanni-41df011a8b1892ac69a8903949fddc1b6bcc913c.tar.gz
skyhanni-41df011a8b1892ac69a8903949fddc1b6bcc913c.tar.bz2
skyhanni-41df011a8b1892ac69a8903949fddc1b6bcc913c.zip
removed unnecessary stuff
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt
index 8c12444ac..4e8b95080 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt
@@ -184,13 +184,16 @@ class RepoManager(private val configLocation: File) {
}
event.addData {
- if (successfulConstants.isNotEmpty()) add("Successful Constants (${successfulConstants.size}):")
- for (constant in successfulConstants) {
- add(" - $constant")
- }
+ add("Successful Constants (${successfulConstants.size}):")
+
add("Unsuccessful Constants (${unsuccessfulConstants.size}):")
- for (constant in unsuccessfulConstants) {
+
+ for ((i, constant) in unsuccessfulConstants.withIndex()) {
add(" - $constant")
+ if (i == 5) {
+ add("...")
+ break
+ }
}
}
}
@@ -214,7 +217,10 @@ class RepoManager(private val configLocation: File) {
LorenzUtils.chat("Repo working fine!", prefixColor = "§a")
return
}
- if (successfulConstants.isNotEmpty()) LorenzUtils.chat("Successful Constants §7(${successfulConstants.size}):", prefixColor = "§a")
+ if (successfulConstants.isNotEmpty()) LorenzUtils.chat(
+ "Successful Constants §7(${successfulConstants.size}):",
+ prefixColor = "§a"
+ )
for (constant in successfulConstants) {
LorenzUtils.chat(" §a- §7$constant")
}