- path_value = bt_value_map_borrow(params, "path");
- ret = bt_value_string_get(path_value, &path);
- if (ret) {
- BT_LOGE_STR("Cannot get `path` string parameter.");
- query_ret.status = BT_QUERY_STATUS_INVALID_PARAMS;
- goto error;
- }
+ path_value = bt_value_map_borrow_entry_value_const(params, "path");
+ path = bt_value_string_get(path_value);