Skip to content

Commit

Permalink
Removed the empty elif clause as it has no effect (#1168)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe <nigelchiang@outlook.com>
  • Loading branch information
Shahriyar Rzayev and j178 committed Apr 28, 2021
1 parent 89ab675 commit f58c4c2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions starlette/formparsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ async def parse(self) -> FormData:
name = unquote_plus(field_name.decode("latin-1"))
value = unquote_plus(field_value.decode("latin-1"))
items.append((name, value))
elif message_type == FormMessage.END:
pass

return FormData(items)

Expand Down Expand Up @@ -235,8 +233,6 @@ async def parse(self) -> FormData:
else:
await file.seek(0)
items.append((field_name, file))
elif message_type == MultiPartMessage.END:
pass

parser.finalize()
return FormData(items)

0 comments on commit f58c4c2

Please sign in to comment.