Skip to content

Commit

Permalink
Ugh, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbilas committed Mar 29, 2024
1 parent 4b2abbb commit 2ef1794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<GeneratePackageOnBuild>$(_IsPublishing)</GeneratePackageOnBuild>
<Title>Some OK core utility functions</Title>
<RepositoryUrl>https://github.com/scottbilas/OkTools</RepositoryUrl>
<PackageVersion>1.0.11</PackageVersion>
<PackageVersion>1.0.12</PackageVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/Core/TimeSpanExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public static TimeSpan Sum(this IEnumerable<TimeSpan> @this) =>
# endif

// TODO: merge this with ToNiceAge
public static string ToNiceString(TimeSpan? timeSpan, bool limitGranularityToSeconds = false)
public static string ToNiceString(this TimeSpan? @this, bool limitGranularityToSeconds = false)
{
if (timeSpan == null)
if (@this == null)
return "(null)";

var ts = timeSpan.Value;
var ts = @this.Value;

if (!limitGranularityToSeconds)
{
Expand Down

0 comments on commit 2ef1794

Please sign in to comment.