aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-23 00:55:23 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-23 00:55:23 +0200
commit801d8bc804e6a959911cbec63a9b32631e63f8ee (patch)
treef45bf7c69a858a38bc39d710c5494140c3aa8692 /src/main/java/at/hannibal2/skyhanni
parent234a02aaf6beabc5e879fa0366295e76e11732be (diff)
downloadskyhanni-801d8bc804e6a959911cbec63a9b32631e63f8ee.tar.gz
skyhanni-801d8bc804e6a959911cbec63a9b32631e63f8ee.tar.bz2
skyhanni-801d8bc804e6a959911cbec63a9b32631e63f8ee.zip
Fixed typos
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
index a9c755cf9..4218eabc5 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt
@@ -34,7 +34,7 @@ class ConfigManager {
configFile = File(configDirectory, "config.json")
fixedRateTimer(name = "config-auto-save", period = 60_000L, initialDelay = 60_000L) {
- saveConfig("autp-save-60s")
+ saveConfig("auto-save-60s")
}
logger.log("Trying to load config from $configFile")
@@ -104,9 +104,7 @@ class ConfigManager {
}
fun saveConfig(reason: String) {
- val text = "saveConfig: $reason"
- println(text)
- logger.log(text)
+ logger.log("saveConfig: $reason")
val file = configFile ?: throw Error("Can not save config, configFile is null!")
try {
logger.log("Saving config file")