Skip to content

Commit d59e941

Browse files
committed
Inline variable
1 parent 134bdbf commit d59e941

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/trino-main/src/main/java/io/trino/sql/planner/plan/Assignments.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ public Assignments filter(Predicate<Symbol> predicate)
124124

125125
public boolean isIdentity(Symbol output)
126126
{
127-
Expression expression = assignments.get(output);
128-
129-
return expression instanceof Reference reference && reference.name().equals(output.name());
127+
return assignments.get(output) instanceof Reference reference && reference.name().equals(output.name());
130128
}
131129

132130
public boolean isIdentity()

0 commit comments

Comments
 (0)