Skip to content

Commit

Permalink
🔥 Drop an unused variable
Browse files Browse the repository at this point in the history
I think the storage of binding data to `binding` is a hangover from some
version of this code; it isn't used so remove it.

Also ensure that the key that is returned is stripped of any surrounding
whitespace.
  • Loading branch information
davep committed Jan 23, 2025
1 parent 3a56c89 commit eff8d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/braindrop/app/commands/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def key_binding(cls) -> str:
if isinstance(key := cls.BINDING_KEY, tuple):
key, *_ = key
if isinstance(key, str):
key, _, _ = (binding := cls.binding()).key.partition(",")
return key or ""
key, _, _ = cls.binding().key.partition(",")
return (key or "").strip()

@classmethod
def action_name(cls) -> str:
Expand Down

0 comments on commit eff8d78

Please sign in to comment.