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
+6 -3
View File
@@ -10,7 +10,8 @@ import (
func TestProcessorBadRegistrationNoType(t *testing.T) {
defer func() {
if r := recover(); r == nil {
r := recover()
if r == nil {
t.Fatalf("processor registration should have panicked but did not")
}
}()
@@ -25,7 +26,8 @@ func TestProcessorBadRegistrationNoType(t *testing.T) {
func TestProcessorBadRegistrationNoNew(t *testing.T) {
defer func() {
if r := recover(); r == nil {
r := recover()
if r == nil {
t.Fatalf("processor registration should have panicked but did not")
}
}()
@@ -38,7 +40,8 @@ func TestProcessorBadRegistrationNoNew(t *testing.T) {
func TestProcessorBadRegistrationExistingType(t *testing.T) {
defer func() {
if r := recover(); r == nil {
r := recover()
if r == nil {
t.Fatalf("processor registration should have panicked but did not")
}
}()