Skip to content

Commit 8b559bb

Browse files
Blackclawsjeremydmiller
authored andcommitted
refactor: Remove unnecessary second call
1 parent f143e7c commit 8b559bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Wolverine.Http.Marten/CompiledQueryWriterPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public bool TryApply(HttpChain chain)
3030
var compiledQueryClosure = result.VariableType.FindInterfaceThatCloses(typeof(ICompiledQuery<,>));
3131
if (compiledQueryClosure is null) return false;
3232

33-
var arguments = result.VariableType.FindInterfaceThatCloses(typeof(ICompiledQuery<,>))!.GetGenericArguments();
33+
var arguments = compiledQueryClosure.GetGenericArguments();
3434

3535
var methodCall = typeof(MartenWriteArrayMethodCall<,>).CloseAndBuildAs<MethodCall>(result, (_responseType, _successStatusCode), arguments);
3636

0 commit comments

Comments
 (0)