Skip to content

Commit

Permalink
fix errors.As() panic in msteams plugin (#44984)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoShaka authored Aug 2, 2024
1 parent 07ff819 commit e4af60b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/access/msteams/msapi/graph_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
}
Expand Down

0 comments on commit e4af60b

Please sign in to comment.