Skip to content

Commit

Permalink
fix scope issue
Browse files Browse the repository at this point in the history
Signed-off-by: apxamccallum <[email protected]>
  • Loading branch information
apxamccallum authored Nov 12, 2024
1 parent bb4cd60 commit 47b9887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ a need to type-assert data when retrieving it. We'll use the Person struct we re
// Retrieve our struct and type-assert it
val := session.Values["person"]
var person = &Person{}
if person, ok := val.(*Person); !ok {
person, ok := val.(*Person)
if !ok {
// Handle the case that it's not an expected type
}
Expand Down

0 comments on commit 47b9887

Please sign in to comment.