Skip to content

Remove dead code in multipart parser#1536

Merged
jeremyevans merged 1 commit into
rack:masterfrom
jeremyevans:dead-code-multipart-part
Jan 29, 2020
Merged

Remove dead code in multipart parser#1536
jeremyevans merged 1 commit into
rack:masterfrom
jeremyevans:dead-code-multipart-part

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

This can only be hit if filename is nil/false. However, when
the MimePart is created, it is either a TempfilePart if there
is a filename or a BufferPart otherwise. In the TempfilePart
case, the filename is present so this code is not hit. In the
BufferPart case, the body is a String and not an IO, so this
cannot be hit.

This can only be hit if filename is nil/false.  However, when
the MimePart is created, it is either a TempfilePart if there
is a filename or a BufferPart otherwise.  In the TempfilePart
case, the filename is present so this code is not hit.  In the
BufferPart case, the body is a String and not an IO, so this
cannot be hit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant