mirror of
https://github.com/postgres/postgres.git
synced 2025-10-16 17:07:43 +03:00
Fix unnecessary casts of copyObject() result
The result is already of the correct type, so these casts don't do anything. Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Tender Wang <tndrwang@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/637eeea8-5663-460b-a114-39572c0f6c6e%40eisentraut.org
This commit is contained in:
@@ -2996,7 +2996,7 @@ expression_tree_mutator_impl(Node *node,
|
||||
case T_SortGroupClause:
|
||||
case T_CTESearchClause:
|
||||
case T_MergeSupportFunc:
|
||||
return (Node *) copyObject(node);
|
||||
return copyObject(node);
|
||||
case T_WithCheckOption:
|
||||
{
|
||||
WithCheckOption *wco = (WithCheckOption *) node;
|
||||
@@ -3604,7 +3604,7 @@ expression_tree_mutator_impl(Node *node,
|
||||
break;
|
||||
case T_PartitionPruneStepCombine:
|
||||
/* no expression sub-nodes */
|
||||
return (Node *) copyObject(node);
|
||||
return copyObject(node);
|
||||
case T_JoinExpr:
|
||||
{
|
||||
JoinExpr *join = (JoinExpr *) node;
|
||||
|
Reference in New Issue
Block a user