mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Remove useless casts
Casting the argument of strVal() to (Value *) is useless, since strVal() already does that. Most code didn't do that anyway; this was apparently just a style that snuck into certain files. Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/5ba6bc5b-3f95-04f2-2419-f8ddb4c046fb@enterprisedb.com
This commit is contained in:
@ -52,7 +52,7 @@ CommentObject(CommentStmt *stmt)
|
||||
*/
|
||||
if (stmt->objtype == OBJECT_DATABASE)
|
||||
{
|
||||
char *database = strVal((Value *) stmt->object);
|
||||
char *database = strVal(stmt->object);
|
||||
|
||||
if (!OidIsValid(get_database_oid(database, true)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user