1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-11 00:12:06 +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:
Peter Eisentraut
2024-10-17 08:36:14 +02:00
parent eafda78fc4
commit 665785d85f
3 changed files with 4 additions and 4 deletions

View File

@@ -1715,7 +1715,7 @@ ReplaceVarsFromTargetList_callback(Var *var,
break;
case REPLACEVARS_CHANGE_VARNO:
var = (Var *) copyObject(var);
var = copyObject(var);
var->varno = rcon->nomatch_varno;
/* we leave the syntactic referent alone */
return (Node *) var;