mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +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:
@@ -335,7 +335,7 @@ CreateStatistics(CreateStatsStmt *stmt)
|
||||
build_mcv = false;
|
||||
foreach(cell, stmt->stat_types)
|
||||
{
|
||||
char *type = strVal((Value *) lfirst(cell));
|
||||
char *type = strVal(lfirst(cell));
|
||||
|
||||
if (strcmp(type, "ndistinct") == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user