From f82fdb51313d2191102710aefca76b12207f12fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Vetni=C4=87?= Date: Thu, 25 Jan 2024 23:32:43 +0100 Subject: [PATCH] chore: fix formatting --- .../src/Devices.Application/Devices/DTOs/PublicKey.cs | 6 +++--- .../src/Devices.Application/Devices/DTOs/Signature.cs | 6 +++--- .../Aggregates/PushNotifications/PnsRegistration.cs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Modules/Devices/src/Devices.Application/Devices/DTOs/PublicKey.cs b/Modules/Devices/src/Devices.Application/Devices/DTOs/PublicKey.cs index a5ead3c3cb..c01154ae0c 100644 --- a/Modules/Devices/src/Devices.Application/Devices/DTOs/PublicKey.cs +++ b/Modules/Devices/src/Devices.Application/Devices/DTOs/PublicKey.cs @@ -33,10 +33,10 @@ public byte[] ToBytes() public static PublicKey FromBytes(byte[] bytes) { var publicKeyJsonString = Encoding.UTF8.GetString(bytes); - var publicKeyObject = + var publicKeyObject = JsonSerializer.Deserialize( - publicKeyJsonString, - new JsonSerializerOptions { Converters = { new DynamicJsonConverter() } }) ?? + publicKeyJsonString, + new JsonSerializerOptions { Converters = { new DynamicJsonConverter() } }) ?? throw new Exception("Could not deserialize public key."); var key = Base64UrlEncoder.DecodeBytes((string)publicKeyObject.pub); var algorithm = (SignatureAlgorithm)publicKeyObject.alg; diff --git a/Modules/Devices/src/Devices.Application/Devices/DTOs/Signature.cs b/Modules/Devices/src/Devices.Application/Devices/DTOs/Signature.cs index a8ce3ae5c6..8b6947b657 100644 --- a/Modules/Devices/src/Devices.Application/Devices/DTOs/Signature.cs +++ b/Modules/Devices/src/Devices.Application/Devices/DTOs/Signature.cs @@ -32,10 +32,10 @@ public byte[] ToBytes() public static Signature FromBytes(byte[] bytes) { var signatureJsonString = Encoding.UTF8.GetString(bytes); - var signatureObject = + var signatureObject = JsonSerializer.Deserialize( - signatureJsonString, - new JsonSerializerOptions { Converters = { new DynamicJsonConverter() } }) ?? + signatureJsonString, + new JsonSerializerOptions { Converters = { new DynamicJsonConverter() } }) ?? throw new Exception("Could not deserialize signature."); var signature = Base64UrlEncoder.DecodeBytes((string)signatureObject.sig); var algorithm = (SignatureAlgorithm)signatureObject.alg; diff --git a/Modules/Devices/src/Devices.Domain/Aggregates/PushNotifications/PnsRegistration.cs b/Modules/Devices/src/Devices.Domain/Aggregates/PushNotifications/PnsRegistration.cs index 53656e25a5..39d49edf97 100644 --- a/Modules/Devices/src/Devices.Domain/Aggregates/PushNotifications/PnsRegistration.cs +++ b/Modules/Devices/src/Devices.Domain/Aggregates/PushNotifications/PnsRegistration.cs @@ -3,8 +3,8 @@ using Backbone.Tooling; using Backbone.Tooling.Extensions; -// ReSharper disable EntityFramework.ModelValidation.UnlimitedStringLength -// ReSharper disable UnusedMember.Local +// ReSharper disable EntityFramework.ModelValidation.UnlimitedStringLength +// ReSharper disable UnusedMember.Local namespace Backbone.Modules.Devices.Domain.Aggregates.PushNotifications;