mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-14 19:03:39 +00:00
syntax cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user