aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFOI site testharness <foi-testharness@sandwich.ukcod.org.uk>2010-09-09 02:27:35 +0100
committerFOI site testharness <foi-testharness@sandwich.ukcod.org.uk>2010-09-09 02:27:35 +0100
commit72b7cf54881f4ee88cdd79c54315e8e2cc01d55a (patch)
treed13cd300a45679a95dda3c0532fe7961fd0a6821
parent291d688cb84e1f4a95dca9d814d41a27528415ad (diff)
Remove surplus :s (for Ruby 1.9)
-rw-r--r--app/models/info_request.rb2
-rw-r--r--app/models/info_request_event.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 10deab25a..5a422c79a 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -939,7 +939,7 @@ public
max_id = InfoRequest.connection.select_value('select max(id) as a from info_requests').to_i
info_request = nil
count = 0
- while info_request.nil?:
+ while info_request.nil?
if count > 100
return nil
end
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb
index b666b3cf2..576379096 100644
--- a/app/models/info_request_event.rb
+++ b/app/models/info_request_event.rb
@@ -250,7 +250,7 @@ class InfoRequestEvent < ActiveRecord::Base
for key, value in new_params
old_value = old_params[key].to_s
new_value = new_params[key].to_s
- if old_value != new_value:
+ if old_value != new_value
ret = ret + "<em>" + CGI.escapeHTML(key) + ":</em> "
ret = ret +
CGI.escapeHTML(MySociety::Format.wrap_email_body_by_lines(old_value).strip).gsub(/\n/, '<br>') +