Skip to content

Commit

Permalink
refactor: Change to something possibly more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Aug 8, 2017
1 parent 4068836 commit a4da5dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/transaction-runner.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,10 @@ class TransactionRunner

isMultipart: (headers) ->
contentType = caseless(headers).get('Content-Type')
return false unless contentType
return contentType.indexOf('multipart') > -1
if contentType
contentType.indexOf('multipart') > -1
else
false

# Finds newlines not preceeded by carriage returns and replaces them by
# newlines preceeded by carriage returns.
Expand Down

0 comments on commit a4da5dd

Please sign in to comment.