From e820408a64addeb7178bed5de0a9e1c323e8828f Mon Sep 17 00:00:00 2001 From: Jacob Fink Date: Thu, 3 Aug 2023 15:44:41 -0400 Subject: [PATCH] [PM-2713] make method async again - returning null from a task thats not async throws --- src/Core/Services/CryptoService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Services/CryptoService.cs b/src/Core/Services/CryptoService.cs index a5971a1ac..e0eaa8e8f 100644 --- a/src/Core/Services/CryptoService.cs +++ b/src/Core/Services/CryptoService.cs @@ -625,13 +625,13 @@ namespace Bit.Core.Services encString.Iv, encString.Mac, key); } - public Task EncryptAsync(string plainValue, SymmetricCryptoKey key = null) + public async Task EncryptAsync(string plainValue, SymmetricCryptoKey key = null) { if (plainValue == null) { return null; } - return EncryptAsync(Encoding.UTF8.GetBytes(plainValue), key); + return await EncryptAsync(Encoding.UTF8.GetBytes(plainValue), key); } public async Task EncryptAsync(byte[] plainValue, SymmetricCryptoKey key = null)