From 4a821601728978ab650eb3e66042459a188e6bc4 Mon Sep 17 00:00:00 2001 From: hugoShaka Date: Thu, 1 Aug 2024 16:11:22 -0400 Subject: [PATCH] fix errors.As() panic in msteams plugin --- 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 "" }