From 5fa6ea2291ee43a52f1b93d27aa491abdabf66cc Mon Sep 17 00:00:00 2001 From: techyian Date: Thu, 3 Sep 2020 14:28:00 +0100 Subject: [PATCH] Resolve compiler warnings. --- src/MMALSharp/MMALCamera.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/MMALSharp/MMALCamera.cs b/src/MMALSharp/MMALCamera.cs index 16897abd..b8cdeced 100644 --- a/src/MMALSharp/MMALCamera.cs +++ b/src/MMALSharp/MMALCamera.cs @@ -379,8 +379,7 @@ public async Task TakePictureTimelapse(IFileStreamCaptureHandler handler, MMALEn { await Task.WhenAny( Task.WhenAll(tasks), - RefreshAnnotations(refreshInterval, ctsRefreshAnnotation.Token) - ).ConfigureAwait(false); + RefreshAnnotations(refreshInterval, ctsRefreshAnnotation.Token)).ConfigureAwait(false); ctsRefreshAnnotation.Cancel(); } @@ -389,8 +388,7 @@ await Task.WhenAny( await Task.WhenAny( Task.WhenAll(tasks), RefreshAnnotations(refreshInterval, ctsRefreshAnnotation.Token), - cancellationToken.AsTask() - ).ConfigureAwait(false); + cancellationToken.AsTask()).ConfigureAwait(false); ctsRefreshAnnotation.Cancel();