Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Mar 10, 2024
1 parent eb27504 commit b318789
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Verify/Serialization/Scrubbers/SharedScrubber_Dates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{
internal static List<string> dateFormats = ["d"];
internal static List<string> timeFormats = ["h:mm tt"];
internal static List<string> datetimeFormats = [];
internal static List<string> datetimeOffsetFormats = [];
internal static List<string> dateTimeFormats = [];
internal static List<string> dateTimeOffsetFormats = [];

internal bool TryConvert(Counter counter, DateTime value, [NotNullWhen(true)] out string? result)
{
Expand Down Expand Up @@ -162,7 +162,7 @@ internal bool TryParseConvertDateTime(Counter counter, CharSpan value, [NotNullW
return true;
}

foreach (var format in datetimeFormats)
foreach (var format in dateTimeFormats)
{
if (TryParseDateTime(value, format, out dateTime))
{
Expand Down Expand Up @@ -193,7 +193,7 @@ internal bool TryParseConvertDateTimeOffset(Counter counter, CharSpan value, [No
return true;
}

foreach (var format in datetimeOffsetFormats)
foreach (var format in dateTimeOffsetFormats)
{
if (TryParseDateTimeOffset(value, format, out dateTimeOffset))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public static void AddExtraTimeFormat(string format)
public static void AddExtraDatetimeFormat(string format)
{
InnerVerifier.ThrowIfVerifyHasBeenRun();
SerializationSettings.datetimeFormats.Add(format);
SerializationSettings.dateTimeFormats.Add(format);
}

public static void AddExtraDatetimeOffsetFormat(string format)
{
InnerVerifier.ThrowIfVerifyHasBeenRun();
SerializationSettings.datetimeOffsetFormats.Add(format);
SerializationSettings.dateTimeOffsetFormats.Add(format);
}

public static void DontScrubGuids()
Expand Down

0 comments on commit b318789

Please sign in to comment.