Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro615 committed May 13, 2019
1 parent a88eb33 commit df49809
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions c_glib/arrow-glib/reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1591,11 +1591,7 @@ garrow_json_read_options_get_property(GObject *object,
g_value_set_enum(value, static_cast<int>(priv->parse_options.unexpected_field_behavior));
break;
case PROP_JSON_READER_SCHEMA:
if (priv->schema) {
g_value_set_object(value, priv->schema);
} else {
g_value_set_object(value, nullptr);
}
g_value_set_object(value, priv->schema);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
Expand Down

0 comments on commit df49809

Please sign in to comment.