Skip to content

Commit 3a39ea3

Browse files
committed
NullOrEmpty
1 parent 1ad0241 commit 3a39ea3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Assets/Scripts/Config/SentryCliConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ public override void Configure(SentryCliOptions cliOptions)
77
{
88
Debug.Log("Calling into the 'Configure' callback for CLI options.");
99

10-
if (cliOptions.Auth is not null)
10+
if (!string.IsNullOrEmpty(cliOptions.Auth))
1111
{
12-
Debug.Log("The 'AUTH TOKEN' is already set.");
12+
Debug.Log("The 'AUTH TOKEN' is already set and taken from local cli options.");
1313
return;
1414
}
1515

Assets/Scripts/Config/SentryOptionConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ public override void Configure(SentryUnityOptions options)
77
{
88
Debug.Log("Calling into the 'Configure' callback.");
99

10-
if (options.Dsn is not null)
10+
if (!string.IsNullOrEmpty(options.Dsn))
1111
{
12-
Debug.Log("The 'DSN' is already set.");
12+
Debug.Log("The 'DSN' is already set and taken from local options.");
1313
return;
1414
}
1515

0 commit comments

Comments
 (0)