summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2025-10-02 22:54:37 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2025-10-02 22:54:37 +0200
commit381f5cffae0040a402e082adc5d5e7636035d2a7 (patch)
treef00c18ac7dcb3b54ec788090460c455549614675
parenta1b064e4b22686ecaecdf1cee0abfe53b81f6aaf (diff)
Remove check for NULL in STRICT functionHEADorigin/masterorigin/HEADmaster
test_bms_make_singleton is defined as STRICT and only takes a single parameter, so there is no need to check that parameter for NULL as a NULL input won't ever reach there. Author: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/BC483901-9587-4076-B20F-9A414C66AB78@yesql.se
-rw-r--r--src/test/modules/test_bitmapset/test_bitmapset.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/test/modules/test_bitmapset/test_bitmapset.c b/src/test/modules/test_bitmapset/test_bitmapset.c
index 6364eba832c..acaa93d2f11 100644
--- a/src/test/modules/test_bitmapset/test_bitmapset.c
+++ b/src/test/modules/test_bitmapset/test_bitmapset.c
@@ -201,9 +201,6 @@ test_bms_make_singleton(PG_FUNCTION_ARGS)
Bitmapset *bms;
int32 member;
- if (PG_ARGISNULL(0))
- PG_RETURN_NULL(); /* invalid input */
-
member = PG_GETARG_INT32(0);
bms = bms_make_singleton(member);