1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-09 13:09:39 +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

@@ -1169,7 +1169,7 @@ CreateTriggerFiringOn(CreateTrigStmt *stmt, const char *queryString,
* Initialize our fabricated parse node by copying the original
* one, then resetting fields that we pass separately.
*/
childStmt = (CreateTrigStmt *) copyObject(stmt);
childStmt = copyObject(stmt);
childStmt->funcname = NIL;
childStmt->whenClause = NULL;