diff options
author | FOI site testharness <foi-testharness@sandwich.ukcod.org.uk> | 2010-09-09 01:15:46 +0100 |
---|---|---|
committer | FOI site testharness <foi-testharness@sandwich.ukcod.org.uk> | 2010-09-09 01:15:46 +0100 |
commit | e4275ce575604f9ed8a834a9d1eb5b1751ec99e0 (patch) | |
tree | 58cee6a5d41fa91cd0922bf54fee0cb7abbcea97 | |
parent | afc838c19139283b0b90e15b4fa4290ccd23499e (diff) |
Remove invalid colons from end of if statements (for Ruby 1.9)
-rw-r--r-- | app/models/incoming_message.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 5800740db..274c42a60 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -224,7 +224,7 @@ class FOIAttachment def extra_note # For delivery status notification attachments, extract the status and # look up what it means in the DSN table. - if @content_type == 'message/delivery-status': + if @content_type == 'message/delivery-status' if !@body.match(/Status:\s+([0-9]+\.([0-9]+\.[0-9]+))\s+/) return "" end @@ -312,9 +312,9 @@ class FOIAttachment # PDF, PowerPoint and TIFF are listed on https://docs.google.com/viewer # .doc and .docx were added later http://gmailblog.blogspot.com/2010/06/view-doc-attachments-right-in-your.html def has_google_docs_viewer? - if self.content_type == 'application/vnd.ms-word': + if self.content_type == 'application/vnd.ms-word' return true - elsif self.content_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': + elsif self.content_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' return true elsif self.content_type == 'application/pdf' return true |