Skip to content

Commit

Permalink
Simplify by removing an unecessary variable in Pilot.click
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Dec 10, 2024
1 parent 7ed775e commit c8b2ecd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/textual/pilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async def click(
widget, False otherwise.
"""
try:
done = await self._post_mouse_events(
return await self._post_mouse_events(
[MouseDown, MouseUp, Click],
widget=widget,
offset=offset,
Expand All @@ -241,7 +241,6 @@ async def click(
control=control,
times=times,
)
return done
except OutOfBounds as error:
raise error from None

Expand Down

0 comments on commit c8b2ecd

Please sign in to comment.