Skip to content

Commit

Permalink
Refactor FlagConverter to remove unnecessary last_position variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Vioshim committed Apr 26, 2024
1 parent 0e91090 commit dac07f1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion discord/ext/commands/flags.py
Expand Up @@ -534,7 +534,6 @@ def parse_flags(cls, argument: str, *, ignore_extra: bool = True) -> Dict[str, L
if match is not None:
begin, end = match.span(0)
value = argument[:begin].strip()
last_position = begin
else:
value = argument.strip()
last_position = len(argument)
Expand Down

0 comments on commit dac07f1

Please sign in to comment.