Skip to content

Commit c884ab7

Browse files
committed
Updates from review comments
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent d366954 commit c884ab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/epp/plugins/plugins.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ func PluginByType[P Plugin](handlePlugins HandlePlugins, name string) (P, error)
6060

6161
rawPlugin := handlePlugins.Plugin(name)
6262
if rawPlugin == nil {
63-
return zero, fmt.Errorf("there was no plugin with the name '%s' defined", name)
63+
return zero, fmt.Errorf("there is no plugin with the name '%s' defined", name)
6464
}
6565
thePlugin, ok := rawPlugin.(P)
6666
if !ok {
67-
return zero, fmt.Errorf("the plugin with the name '%s' was not an instance of %T", name, zero)
67+
return zero, fmt.Errorf("the plugin with the name '%s' is not an instance of %T", name, zero)
6868
}
6969
return thePlugin, nil
7070
}

0 commit comments

Comments
 (0)