From 1c8fa5269dc13288dd9a03c26c7ef6d24dd7db4d Mon Sep 17 00:00:00 2001 From: David Revay Date: Thu, 10 Oct 2024 17:31:58 +1100 Subject: [PATCH] chore: remove double quotes --- .../jinja_templates/cpp/declare_parameter | 2 +- .../jinja_templates/cpp/declare_runtime_parameter | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_parameter b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_parameter index 5888b03..51e4fb4 100644 --- a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_parameter +++ b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_parameter @@ -4,7 +4,7 @@ rcl_interfaces::msg::ParameterDescriptor descriptor; descriptor.description = {{parameter_description | valid_string_cpp}}; descriptor.read_only = {{parameter_read_only}}; {%- if parameter_additional_constraints|length %} -descriptor.additional_constraints = "{{parameter_additional_constraints | valid_string_cpp}}"; +descriptor.additional_constraints = {{parameter_additional_constraints | valid_string_cpp}}; {% endif -%} {%- for validation in parameter_validations if ("bounds" in validation.function_name or "lt" in validation.function_name or "gt" in validation.function_name) %} {%- if "DOUBLE" in parameter_type %} diff --git a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_runtime_parameter b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_runtime_parameter index ce1161e..625a842 100644 --- a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_runtime_parameter +++ b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/cpp/declare_runtime_parameter @@ -20,7 +20,7 @@ rcl_interfaces::msg::ParameterDescriptor descriptor; descriptor.description = {{parameter_description | valid_string_cpp}}; descriptor.read_only = {{parameter_read_only}}; {%- if parameter_additional_constraints|length %} -descriptor.additional_constraints = "{{parameter_additional_constraints | valid_string_cpp}}"; +descriptor.additional_constraints = {{parameter_additional_constraints | valid_string_cpp}}; {% endif -%} {%- for validation in parameter_validations if ("bounds" in validation.function_name or "lt" in validation.function_name or "gt" in validation.function_name) %} {%- if "DOUBLE" in parameter_type %}