Skip to content

Commit

Permalink
style: format code with dotnet-format
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 9fb2cc8 according to the output
from dotnet-format.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Nov 8, 2023
1 parent 9fb2cc8 commit 7771e60
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 21 deletions.
3 changes: 2 additions & 1 deletion EntityFrameworkCore/RegexValueObjectEfCoreConverter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Dgmjr.Primitives.EntityFrameworkCore;

public class RegexValueObjectEfCoreConverter<TValueObject>
: CastingConverter<TValueObject, string> { }
: CastingConverter<TValueObject, string>
{ }
14 changes: 7 additions & 7 deletions Tests/DurationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ duration expectedDuration
},
new object[] { "-PT525600M", duration.FromMinutes(-525600) },
new object[] { "PT525600M", duration.FromMinutes(525600) }
};

public static IEnumerable<object[]> YearMonthDurationTestData =>
new[]
{
};

public static IEnumerable<object[]> YearMonthDurationTestData =>
new[]
{
new object[]
{
"-P6500Y1M",
Expand All @@ -69,6 +69,6 @@ duration expectedDuration
-(YearMonthDuration.DaysPerYear + (3 * YearMonthDuration.DaysPerMonth))
)
},
new object[] { "P3M", duration.FromDays(90) }
};
new object[] { "P3M", duration.FromDays(90) }
};
}
4 changes: 2 additions & 2 deletions src/Int24.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public int CompareTo(i24 other)
/// <returns>true if the value of the other parameter is the same as the value of this instance; otherwise, false.</returns>
public bool Equals(i24 other)
{
return SignExtend() == other.SignExtend();
return SignExtend() == other.SignExtend();
}

/// <summary>
Expand All @@ -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);
Expand Down
22 changes: 11 additions & 11 deletions src/xsduration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down

0 comments on commit 7771e60

Please sign in to comment.