Skip to content

Commit 946d8da

Browse files
committed
style(core): use var where the type is apparent (IDE0007)
The JsonDocument.Parse result names its type on the RHS, so the repo convention (csharp_style_var_when_type_is_apparent) wants var there. Clears the last Sonar smell.
1 parent 90c169e commit 946d8da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NeoReports.Core/Configuration/JsonLogicFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static Func<ReportRecord, bool> Compile(string expression)
2727
JsonElement root;
2828
try
2929
{
30-
using JsonDocument document = JsonDocument.Parse(expression);
30+
using var document = JsonDocument.Parse(expression);
3131
root = document.RootElement.Clone();
3232
}
3333
catch (JsonException ex)

0 commit comments

Comments
 (0)