From bf7c145efabaf317e86d36147c7c675534da4392 Mon Sep 17 00:00:00 2001 From: Junming Chen Date: Tue, 22 Aug 2023 07:13:38 +0800 Subject: [PATCH] Update c_glib/arrow-glib/compute.cpp Co-authored-by: Sutou Kouhei --- c_glib/arrow-glib/compute.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/c_glib/arrow-glib/compute.cpp b/c_glib/arrow-glib/compute.cpp index 3361404d2fc1b..6ff04616cceeb 100644 --- a/c_glib/arrow-glib/compute.cpp +++ b/c_glib/arrow-glib/compute.cpp @@ -6463,10 +6463,7 @@ garrow_set_lookup_options_new_raw( arrow_copied_options.get()); auto value_set = garrow_datum_new_raw(&(arrow_copied_set_lookup_options->value_set)); - bool skip_nulls = false; - if (arrow_options->skip_nulls.has_value() && arrow_options->skip_nulls.value()) { - skip_nulls = true; - } + auto skip_nulls = (arrow_options->skip_nulls.has_value() && arrow_options->skip_nulls.value()); auto options = g_object_new(GARROW_TYPE_SET_LOOKUP_OPTIONS, "value-set", value_set, "skip-nulls", skip_nulls,