Skip to content

Commit b1a2266

Browse files
committed
return value_pb for less unnecessary conversions
1 parent 1c1fc34 commit b1a2266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spot_choreo_utils/spot_choreo_utils/choreo_creation/choreo_builders/sequence_builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def _clamp_param(self, name: str, value_pb: DoubleValue) -> DoubleValue:
170170
)
171171
return DoubleValue(value=bounds[1])
172172
else:
173-
return DoubleValue(value=val)
173+
return value_pb
174174

175175
def validate_rotate_body(self, params: RotateBodyParams) -> bool:
176176
params.start_slice.CopyFrom(self._clamp_param("start_slice", params.start_slice))

0 commit comments

Comments
 (0)