Skip to content

Commit

Permalink
Updated code formatting to match rules in .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 26, 2024
1 parent e9fd856 commit 00c7ca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Hyperbee.Json/Filters/Parser/FilterParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static ExpressionConverter()
var accessorParam = Expression.Parameter( typeof( IValueAccessor<TNode> ), "accessor" );
var expressionParam = Expression.Parameter( typeof( IEnumerable<TNode> ), "expression" );

var methodInfo = typeof(IValueAccessor<TNode>).GetMethod( nameof( IValueAccessor<TNode>.GetAsValue ) );
var methodInfo = typeof( IValueAccessor<TNode> ).GetMethod( nameof( IValueAccessor<TNode>.GetAsValue ) );
var callExpression = Expression.Call( accessorParam, methodInfo!, expressionParam );

GetAsValueDelegate = Expression.Lambda<Func<IValueAccessor<TNode>, IEnumerable<TNode>, object>>(
Expand Down
6 changes: 3 additions & 3 deletions test/Hyperbee.Json.Tests/Parsers/FilterParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ public void Should_MatchExpectedResult_WhenUsingFunctions( string filter, bool e

[DataTestMethod]
[DataRow( "length(@.store.book) == 4 ", true, typeof( JsonElement ) )]
[DataRow( "length (@.store.book) == 4 ", true, typeof(JsonElement) )]
[DataRow( "length (@.store.book) == 4 ", true, typeof( JsonElement ) )]
[DataRow( " length(@.store.book) == 4", true, typeof( JsonElement ) )]
[DataRow( " length(@.store.book) == 4 ", true, typeof( JsonElement ) )]
[DataRow( " length( @.store.book ) == 4 ", true, typeof( JsonElement ) )]
[DataRow( "4 == length( @.store.book ) ", true, typeof( JsonElement ) )]
[DataRow( "4 == length ( @.store.book ) ", true, typeof(JsonElement) )]
[DataRow( "4 == length ( @.store.book ) ", true, typeof( JsonElement ) )]
[DataRow( " 4 == length(@.store.book)", true, typeof( JsonElement ) )]
[DataRow( " 4 == length(@.store.book) ", true, typeof( JsonElement ) )]
[DataRow( " 4 == length( @.store.book ) ", true, typeof( JsonElement ) )]
Expand Down Expand Up @@ -192,7 +192,7 @@ private static bool Execute( Expression expression, ParameterExpression param, T

return func( new JsonElement() );
}

if ( sourceType == typeof( JsonNode ) )
{
var func = Expression
Expand Down

0 comments on commit 00c7ca3

Please sign in to comment.