Skip to content

Commit 4837b5f

Browse files
committed
Fix CS0162 unreachable code warning
- Changed USE_FAKE_FOR_TESTING from const to static readonly - Prevents compiler warning about unreachable code in CI builds - Maintains same functionality with runtime evaluation
1 parent 5d30a90 commit 4837b5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

10.0/AgeSignals/AgeSignals/Services/AgeSignalService.Android.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public partial class AgeSignalService : IAgeSignalService
1616

1717
// Set to true to use FakeAgeSignalsManager since Google has paused the live API
1818
// Change to false when Google launches the API live (expected May/July 2026)
19-
private const bool USE_FAKE_FOR_TESTING = true;
19+
private static readonly bool UseFakeForTesting = true;
2020

2121
public AgeSignalService(ILogger<AgeSignalService> logger)
2222
{
@@ -47,7 +47,7 @@ public async Task<AgeVerificationResult> RequestAgeVerificationAsync(AgeVerifica
4747

4848
if (_ageSignalsManager == null)
4949
{
50-
if (USE_FAKE_FOR_TESTING)
50+
if (UseFakeForTesting)
5151
{
5252
// Use FakeAgeSignalsManager since Google has paused live responses
5353
_ageSignalsManager = CreateFakeAgeSignalsManager();

0 commit comments

Comments
 (0)