Skip to content

Commit ce3c611

Browse files
committed
Move variable out.
1 parent 50b3c35 commit ce3c611

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Core/Transformation/Transformer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ public bool TryTransform<TSource, TTarget>(TSource source, IGremlinQueryEnvironm
9494
private IConverter<TStaticSource, TTarget> GetUnifiedConverter<TStaticSource, TActualSource, TTarget>(IGremlinQueryEnvironment environment)
9595
where TActualSource : TStaticSource
9696
{
97+
var deferTransformers = _deferTransformers;
9798
var list = new List<(IConverter<TActualSource, TTarget> converter, TransformerImpl overridden)>();
9899

99100
for (var i = _converterFactories.Count - 1; i >= 0; i--)
100101
{
101102
if (_converterFactories[i].TryCreate<TActualSource, TTarget>(environment) is { } converter)
102103
{
103-
TransformerImpl? deferTransformer = null;
104-
var deferTransformers = _deferTransformers;
105-
104+
TransformerImpl? deferTransformer;
105+
106106
while (true)
107107
{
108108
if (deferTransformers is { } existingDeferTransformers)

0 commit comments

Comments
 (0)