Skip to content

Commit 7457cda

Browse files
committed
Apply Resharper hint: pass string interpolation
1 parent c8f4902 commit 7457cda

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Examples/JsonApiDotNetCoreExample/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"Microsoft.EntityFrameworkCore.Update": "Critical",
1010
"Microsoft.EntityFrameworkCore.Database.Command": "Critical",
1111
"JsonApiDotNetCore.Middleware.JsonApiMiddleware": "Information",
12-
"Program": "Information"
12+
"JsonApiDotNetCoreExample": "Information"
1313
}
1414
},
1515
"AllowedHosts": "*"

src/JsonApiDotNetCore/Diagnostics/CascadingCodeTimer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ private void WriteResult(StringBuilder builder, int indent, TimeSpan timeElapsed
238238
WriteIndent(builder, indent);
239239
builder.Append(Name);
240240
WritePadding(builder, indent, paddingLength);
241-
builder.AppendFormat(CultureInfo.InvariantCulture, "{0,19:G}", timeElapsedInSelf);
241+
builder.Append(CultureInfo.InvariantCulture, $"{timeElapsedInSelf,19:G}");
242242

243243
if (!_excludeInRelativeCost)
244244
{
245245
builder.Append(" ... ");
246-
builder.AppendFormat(CultureInfo.InvariantCulture, "{0,7:#0.00%}", scaleElapsedInSelf);
246+
builder.Append(CultureInfo.InvariantCulture, $"{scaleElapsedInSelf,7:#0.00%}");
247247
}
248248

249249
if (_stoppedAt == null)

0 commit comments

Comments
 (0)