Skip to content

Commit

Permalink
Removed unnecessary last_position
Browse files Browse the repository at this point in the history
  • Loading branch information
Vioshim committed Apr 26, 2024
1 parent 0e1d8f3 commit a2e60b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ext/commands/flags.py
Expand Up @@ -542,7 +542,7 @@ def parse_flags(cls, argument: str, *, ignore_extra: bool = True) -> Dict[str, L
if last_position:
value = argument[last_position : begin - 1].lstrip()
else:
value = argument[last_position:begin].strip()
value = argument[:begin].strip()

if not value and last_position:
raise MissingFlagArgument(last_flag)
Expand Down

0 comments on commit a2e60b3

Please sign in to comment.