Skip to content

Commit e8e50c8

Browse files
committed
Small tweaks to help w brakeman
1 parent 764a22a commit e8e50c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/controllers/admin/analytics_controller.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ def print
4444
"CommunityNews" => CommunityNews
4545
}.freeze
4646

47-
klass = printable_models[params[:printable_type]]
48-
return head :bad_request unless klass
47+
klass = printable_models[params[:printable_type]]
48+
return head :bad_request unless klass
4949

50-
record = klass.find_by(id: params[:printable_id])
51-
return head :not_found unless record
50+
record = klass.find_by(id: params[:printable_id])
51+
return head :not_found unless record
5252

53-
record.increment_print_count!
53+
record.increment_print_count!
5454

5555
head :ok
5656
end

0 commit comments

Comments
 (0)