diff --git a/Chino.Android/ExposureNotificationClient.cs b/Chino.Android/ExposureNotificationClient.cs index 511f9a7..b5a1a03 100644 --- a/Chino.Android/ExposureNotificationClient.cs +++ b/Chino.Android/ExposureNotificationClient.cs @@ -62,7 +62,7 @@ public void Init(Context applicationContext) { throw exception.ToENException(); } - throw exception; + throw; } } @@ -96,7 +96,7 @@ public override async Task StartAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -119,7 +119,7 @@ public override async Task StopAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -142,7 +142,7 @@ public override async Task IsEnabledAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -165,7 +165,7 @@ public override async Task GetVersionAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -189,7 +189,7 @@ public override async Task> GetStatusesAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -302,7 +302,7 @@ public override async Task ProvideDiagnosisKeysAsync { throw exception.ToENException(); } - throw exception; + throw; } } @@ -326,7 +326,7 @@ public override async Task> GetTemporaryExposureKeyHi { throw exception.ToENException(); } - throw exception; + throw; } } @@ -406,7 +406,7 @@ public override async Task ProvideDiagnosisKeysAsync { throw exception.ToENException(); } - throw exception; + throw; } } #pragma warning restore CS0618 // Type or member is obsolete @@ -430,7 +430,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync( { throw exception.ToENException(); } - throw exception; + throw; } } @@ -495,7 +495,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyReleaseAsync( { throw exception.ToENException(); } - throw exception; + throw; } finally { diff --git a/Chino.Android/ExposureStateBroadcastReceiver.cs b/Chino.Android/ExposureStateBroadcastReceiver.cs index 83c3fc8..d9aca5b 100644 --- a/Chino.Android/ExposureStateBroadcastReceiver.cs +++ b/Chino.Android/ExposureStateBroadcastReceiver.cs @@ -195,7 +195,7 @@ public override bool OnStartJob(JobParameters @params) else { handler.ExceptionOccurred(exception); - throw exception; + throw; } } finally @@ -307,7 +307,7 @@ public override bool OnStartJob(JobParameters @params) else { handler.ExceptionOccurred(exception); - throw exception; + throw; } } finally diff --git a/Chino.iOS/ExposureNotificationClient.cs b/Chino.iOS/ExposureNotificationClient.cs index d283f89..930694a 100644 --- a/Chino.iOS/ExposureNotificationClient.cs +++ b/Chino.iOS/ExposureNotificationClient.cs @@ -66,7 +66,7 @@ public async Task ActivateAsync() { throw exception.ToENException(); } - throw exception; + throw; } finally { @@ -108,7 +108,7 @@ public async override Task StartAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -126,7 +126,7 @@ public async override Task StopAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -144,7 +144,7 @@ public async override Task IsEnabledAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -171,7 +171,7 @@ public async override Task> GetStatusesAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -198,7 +198,7 @@ public async override Task> GetTemporaryExposureKeyHi { throw exception.ToENException(); } - throw exception; + throw; } } @@ -358,7 +358,7 @@ out NSProgress result else { Handler.ExceptionOccurred(exception); - throw exception; + throw; } } finally @@ -452,7 +452,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync( { throw exception.ToENException(); } - throw exception; + throw; } } @@ -476,7 +476,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyReleaseAsync( { throw exception.ToENException(); } - throw exception; + throw; } } }