Skip to content

Commit 20cdcbd

Browse files
committed
fix: errTyp
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent e594fc8 commit 20cdcbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/runtime/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func (c *client) CallExtension(ctx context.Context, hook runtimecatalog.Hook, fo
344344
// If the error is errCallingExtensionHandler then apply failure policy to calculate
345345
// the effective result of the operation.
346346
ignore := *registration.FailurePolicy == runtimev1.FailurePolicyIgnore
347-
var errTyp errCallingExtensionHandler
347+
var errTyp *errCallingExtensionHandler
348348
if errors.As(err, &errTyp) && ignore {
349349
// Update the response to a default success response and return.
350350
log.Info(fmt.Sprintf("ignoring error calling extension handler because of FailurePolicy %q", *registration.FailurePolicy))

0 commit comments

Comments
 (0)