Skip to content

Commit

Permalink
Remove unused type guard from match-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Jun 21, 2024
1 parent fcc8071 commit a98e407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxsim/api/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def collidable_point_dynamics(

# Build the soft contact model.
match model.contact_model:
case s if isinstance(s, SoftContacts):
case SoftContacts():
# Build the contact model.
soft_contacts = SoftContacts(
parameters=data.contacts_params, terrain=model.terrain
Expand Down

0 comments on commit a98e407

Please sign in to comment.