syntax cleanup

This commit is contained in:
Joel Wetzell
2026-07-09 22:22:22 -05:00
parent 777f9c43de
commit b86ca20592
9 changed files with 26 additions and 13 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ func RegisterModule(mod ModuleRegistration) {
moduleRegistryMu.Lock()
defer moduleRegistryMu.Unlock()
if _, ok := moduleRegistry[string(mod.Type)]; ok {
_, exists := moduleRegistry[string(mod.Type)]
if exists {
panic(fmt.Sprintf("module already registered: %s", mod.Type))
}
moduleRegistry[string(mod.Type)] = mod