aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_comment_controller.rb
diff options
context:
space:
mode:
authorJames McKinney <james@slashpoundbang.com>2015-05-21 14:15:30 +0200
committerJames McKinney <james@slashpoundbang.com>2015-05-21 14:15:30 +0200
commitef97ebe2b9b12f5c44a9382b7a81cfca765c1696 (patch)
tree8d3541c04d8ee48333ab401bb7fc8d5e9adbd0b2 /app/controllers/admin_comment_controller.rb
parentfa1e0757634656414a8fb62d8bcf1ec0717537df (diff)
Avoid unnecessary ternary operations
Diffstat (limited to 'app/controllers/admin_comment_controller.rb')
-rw-r--r--app/controllers/admin_comment_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_comment_controller.rb b/app/controllers/admin_comment_controller.rb
index dc505be9f..0d5e84fed 100644
--- a/app/controllers/admin_comment_controller.rb
+++ b/app/controllers/admin_comment_controller.rb
@@ -16,7 +16,7 @@ class AdminCommentController < AdminController
old_body = @comment.body
old_visible = @comment.visible
- @comment.visible = params[:comment][:visible] == "true" ? true : false
+ @comment.visible = params[:comment][:visible] == "true"
if @comment.update_attributes(params[:comment])
@comment.info_request.log_event("edit_comment",