Skip to content

Commit

Permalink
suppress null return warning for session.GetUser (#859)
Browse files Browse the repository at this point in the history
* suppress null return warning

* change to ?
  • Loading branch information
richardelms authored Nov 29, 2024
1 parent 2ae37b7 commit 97fad78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bugsnag/Assets/Bugsnag/Runtime/Payload/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public DateTimeOffset? StartedAt

internal User? User { get; set; }

public IUser GetUser() => User;
public IUser? GetUser() => User;

public void SetUser(string id, string email, string name)
{
Expand Down

0 comments on commit 97fad78

Please sign in to comment.