Skip to content

Commit bd43fd9

Browse files
committed
fix: nullable warnings in ci tests
1 parent 9985781 commit bd43fd9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Packages/Passport/Runtime/Scripts/Private/Model/DirectLoginOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class DirectLoginOptions
1717
/// <summary>
1818
/// Email address for email-based authentication (only used when directLoginMethod is Email).
1919
/// </summary>
20-
public string email;
20+
public string? email;
2121

2222
/// <summary>
2323
/// Marketing consent status. Defaults to OptedIn. Required by Auth endpoints.
@@ -40,7 +40,7 @@ public DirectLoginOptions()
4040
/// <param name="loginMethod">The direct login method</param>
4141
/// <param name="emailAddress">The email address (optional)</param>
4242
/// <param name="marketingConsentStatus">Marketing consent status. Defaults to OptedIn if not specified. Required.</param>
43-
public DirectLoginOptions(DirectLoginMethod loginMethod, string emailAddress = null, MarketingConsentStatus? marketingConsentStatus = null)
43+
public DirectLoginOptions(DirectLoginMethod loginMethod, string? emailAddress = null, MarketingConsentStatus? marketingConsentStatus = null)
4444
{
4545
directLoginMethod = loginMethod;
4646
email = emailAddress;

src/Packages/Passport/Runtime/Scripts/Private/PassportImpl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void SetCallTimeout(int ms)
9898
_communicationsManager.SetCallTimeout(ms);
9999
}
100100

101-
public UniTask<bool> Login(bool useCachedSession = false, DirectLoginOptions directLoginOptions = null)
101+
public UniTask<bool> Login(bool useCachedSession = false, DirectLoginOptions? directLoginOptions = null)
102102
{
103103
if (useCachedSession)
104104
{
@@ -163,7 +163,7 @@ private async UniTask<bool> Relogin()
163163
return false;
164164
}
165165

166-
public async UniTask<bool> ConnectImx(bool useCachedSession = false, DirectLoginOptions directLoginOptions = null)
166+
public async UniTask<bool> ConnectImx(bool useCachedSession = false, DirectLoginOptions? directLoginOptions = null)
167167
{
168168
if (useCachedSession)
169169
{

0 commit comments

Comments
 (0)