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
@@ -35,7 +35,8 @@ func RegisterProcessor(processor ProcessorRegistration) {
processorRegistryMu.Lock()
defer processorRegistryMu.Unlock()
if _, ok := processorRegistry[string(processor.Type)]; ok {
_, exists := processorRegistry[string(processor.Type)]
if exists {
panic(fmt.Sprintf("processor already registered: %s", processor.Type))
}
processorRegistry[string(processor.Type)] = processor