Skip to content

Commit

Permalink
Simplify return condition
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas A Caswell <[email protected]>
  • Loading branch information
jwlodek and tacaswell authored Sep 5, 2024
1 parent 56a3531 commit fd06b5d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bluesky/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,4 @@ def is_plan(bs_plan):
True if bs_plan arg is a generator, or the __is_plan__ attribute exists and is True.
"""

if inspect.isgeneratorfunction(bs_plan) or getattr(bs_plan, "_is_plan_", False):
return True
else:
return False
return inspect.isgeneratorfunction(bs_plan) or getattr(bs_plan, "_is_plan_", False)

0 comments on commit fd06b5d

Please sign in to comment.