Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit 1f29432

Browse files
committed
DEV: stree assign_controller file
1 parent b6e8ab4 commit 1f29432

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/controllers/discourse_assign/assign_controller.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ def assign
4444
note = params.permit(:note)["note"].presence
4545
status = params.permit(:status)["status"].presence
4646
should_notify = params.permit(:should_notify)["should_notify"]
47-
should_notify =
48-
if should_notify.present?
49-
should_notify == "true"
50-
else
51-
true
52-
end
47+
should_notify = (should_notify.present? ? should_notify == "true" : true)
5348

5449
assign_to =
5550
(

0 commit comments

Comments
 (0)