From 528e24739b7f86e62aa5216d77b433d0ad08e460 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:38:42 +0000 Subject: [PATCH] style: format code with dotnet-format This commit fixes the style issues introduced in 7ff0631 according to the output from dotnet-format. Details: None --- .../RegexValueObjectEfCoreConverter.cs | 3 ++- src/Int24.cs | 4 ++-- src/xsduration.cs | 22 +++++++++---------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs b/EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs index aeca02a..ad9bfda 100644 --- a/EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs +++ b/EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs @@ -1,4 +1,5 @@ namespace Dgmjr.Primitives.EntityFrameworkCore; public class RegexValueObjectEfCoreConverter - : CastingConverter { } + : CastingConverter +{ } diff --git a/src/Int24.cs b/src/Int24.cs index 539522d..ec0c63f 100644 --- a/src/Int24.cs +++ b/src/Int24.cs @@ -177,7 +177,7 @@ public int CompareTo(i24 other) /// true if the value of the other parameter is the same as the value of this instance; otherwise, false. public bool Equals(i24 other) { - return SignExtend() == other.SignExtend(); + return SignExtend() == other.SignExtend(); } /// @@ -199,7 +199,7 @@ public i24 SignExtend() if ((this & Zero) != 0) { // Negative number: fill upper 8 bits with 1's - return unchecked ((i24)(int)(this | NegativeSignMask)); + return unchecked((i24)(int)(this | NegativeSignMask)); } // Positive number: fill upper 8 bits with 0's return (i24)(int)(this & PositiveSignMask); diff --git a/src/xsduration.cs b/src/xsduration.cs index ca05f29..1ba4db4 100644 --- a/src/xsduration.cs +++ b/src/xsduration.cs @@ -27,17 +27,17 @@ public static implicit operator duration(xsduration xsd) => xsd.Seconds.HasValue ? (int)Floor(xsd.Seconds.Value) : 0, xsd.Seconds.HasValue ? (int)Floor((xsd.Seconds.Value * 1000) - Floor(xsd.Seconds.Value)) - : 0 - // #if NET7_0_OR_GREATER - // , - // xsd.Seconds.HasValue - // ? (int)Floor( - // (xsd.Seconds.Value * 1000000) - // - Floor(xsd.Seconds.Value * 1000) - // - Floor(xsd.Seconds.Value) - // ) - // : 0 - // #endif + : 0 + // #if NET7_0_OR_GREATER + // , + // xsd.Seconds.HasValue + // ? (int)Floor( + // (xsd.Seconds.Value * 1000000) + // - Floor(xsd.Seconds.Value * 1000) + // - Floor(xsd.Seconds.Value) + // ) + // : 0 + // #endif ).Ticks * xsd.Sign );