chore: ensure config is loaded before init functions (#226)

This commit is contained in:
Aveline
2025-03-04 11:32:54 +01:00
committed by GitHub
parent d4efd72731
commit 554121a20b
5 changed files with 16 additions and 0 deletions

View File

@@ -116,3 +116,9 @@ func SaveConfig() error {
return nil
}
func ensureConfigLoaded() {
if config == nil {
LoadConfig()
}
}