Skip to content

Commit

Permalink
Streamlined if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
willis89pr committed Dec 4, 2024
1 parent 1513e7e commit 1ee858f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surfactant/plugin/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def find_plugin_by_name(pm: pluggy.PluginManager, name: str):
short_name_lower = short_name.lower() if short_name else None

# Check if any of the names match the given name
if (registered_name == name_lower) or (canonical_name == name_lower) or (short_name_lower == name_lower):
if name_lower in (registered_name, canonical_name, short_name_lower):
return plugin

return None

0 comments on commit 1ee858f

Please sign in to comment.