Refactor analyzer: replace slice initialization with var keyword for clarity

This commit is contained in:
2026-01-07 20:27:55 +05:00
parent 0a30733d27
commit 48be913c57

View File

@@ -27,7 +27,7 @@ type analyzer struct {
}
func New(config config2.Config, logger log.Logger, notify notifications.Notifications) Analyzer {
units := []string{}
var units []string
if config.Login.Enabled && config.Login.SSH.Enabled {
units = append(units, "ssh")
}