Skip to content

Commit

Permalink
resolve some warnings (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik authored Feb 29, 2024
1 parent b977312 commit a3a4284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,8 @@ static void CollectOrdinalParts(ICollection<string?> builder, int threeDigitPart
_ => throw new ArgumentOutOfRangeException(nameof(gender))
};
}
else
{
return UnitsOrdinalPrefixes[number] + GetOrdinalEnding(gender);
}

return UnitsOrdinalPrefixes[number] + GetOrdinalEnding(gender);
}

if (number < 100 && number % 10 == 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public string Convert(TimeOnly time, ClockNotationRounding roundToNearestFive)
? 5 * Math.Round(time.Minute / 5.0)
: time.Minute);

var clockNotationMap = new Dictionary<int, string>()
var clockNotationMap = new Dictionary<int, string>
{
{ 0, $"{article} {hour} {dayPeriod}" },
{ 15 , $"{article} {hour} y cuarto {dayPeriod}" },
Expand Down

0 comments on commit a3a4284

Please sign in to comment.