From e4af60b18638201c87d898dc002c9291f8e119ba Mon Sep 17 00:00:00 2001 From: Hugo Shaka Date: Fri, 2 Aug 2024 05:37:00 -0400 Subject: [PATCH] fix errors.As() panic in msteams plugin (#44984) --- integrations/access/msteams/msapi/graph_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/access/msteams/msapi/graph_client.go b/integrations/access/msteams/msapi/graph_client.go index 4c7c66da889ee..0b142b0d9242e 100644 --- a/integrations/access/msteams/msapi/graph_client.go +++ b/integrations/access/msteams/msapi/graph_client.go @@ -101,8 +101,8 @@ func (e graphError) Error() string { // GetErrorCode returns the func GetErrorCode(err error) string { - var graphErr *graphError - ok := errors.As(err, graphErr) + var graphErr graphError + ok := errors.As(err, &graphErr) if !ok { return "" }