Skip to content

Commit 8c5eb3c

Browse files
authored
Updating to be a more concise form for the multipart check.
1 parent 88945d3 commit 8c5eb3c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/ethon/easy/form.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ def last
5555
#
5656
# @return [ Boolean ] True if form is multipart, else false.
5757
def multipart?
58-
59-
if @multipart
60-
return true
61-
end
62-
58+
return true if @multipart
6359
query_pairs.any?{|pair| pair.respond_to?(:last) && pair.last.is_a?(Array)}
6460
end
6561

0 commit comments

Comments
 (0)