Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Jun 6, 2024
1 parent c2af91d commit a21f7f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public TelkomPhoneNumberAttribute() : base("The field {0} must be a valid Telkom
/// <inheritdoc/>
public override bool IsValid(object? value)
{
static bool IsValidByRegEx(string value) => TelkomPhoneNumberValidator.Expression.IsMatch(value);
static bool IsValidByRegEx(string value) => TelkomPhoneNumberValidator.Expression.IsMatch(value);

if (value is string s && !string.IsNullOrEmpty(s)) return IsValidByRegEx(s);

Expand Down
3 changes: 1 addition & 2 deletions src/Tingle.Extensions.Primitives/Duration.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.ComponentModel;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Text;
Expand Down
2 changes: 1 addition & 1 deletion src/Tingle.Extensions.Primitives/Money.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public static Money Parse(string s, IFormatProvider? provider, Currency? currenc
public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, Currency? currency, out Money result)
{
result = default;
if (currency is null &&!TryExtractCurrencyFromString(s, out s, out currency)) return false;
if (currency is null && !TryExtractCurrencyFromString(s, out s, out currency)) return false;

if (double.TryParse(s, NumberStyles.Currency, GetFormatProvider(currency, provider), out var amountD))
{
Expand Down

0 comments on commit a21f7f2

Please sign in to comment.