Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaVetnic committed Jan 25, 2024
1 parent 9a3ce89 commit f82fdb5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<dynamic>(
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<dynamic>(
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f82fdb5

Please sign in to comment.