diff options
author | James McKinney <james@slashpoundbang.com> | 2015-05-21 14:15:30 +0200 |
---|---|---|
committer | James McKinney <james@slashpoundbang.com> | 2015-05-21 14:15:30 +0200 |
commit | ef97ebe2b9b12f5c44a9382b7a81cfca765c1696 (patch) | |
tree | 8d3541c04d8ee48333ab401bb7fc8d5e9adbd0b2 /app/controllers/admin_public_body_headings_controller.rb | |
parent | fa1e0757634656414a8fb62d8bcf1ec0717537df (diff) |
Avoid unnecessary ternary operations
Diffstat (limited to 'app/controllers/admin_public_body_headings_controller.rb')
-rw-r--r-- | app/controllers/admin_public_body_headings_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin_public_body_headings_controller.rb b/app/controllers/admin_public_body_headings_controller.rb index 237cfcf4b..f0568510a 100644 --- a/app/controllers/admin_public_body_headings_controller.rb +++ b/app/controllers/admin_public_body_headings_controller.rb @@ -85,7 +85,7 @@ class AdminPublicBodyHeadingsController < AdminController end end end - { :success => error.nil? ? true : false, :error => error } + { :success => error.nil?, :error => error } end def reorder_categories_for_heading(heading_id, categories) @@ -106,7 +106,7 @@ class AdminPublicBodyHeadingsController < AdminController end end end - { :success => error.nil? ? true : false, :error => error } + { :success => error.nil?, :error => error } end end |