Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Oct 1, 2024
1 parent 2cfad72 commit 65c937a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/controllers/alerts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ def create
redirect_to alerts_path, notice: "You succesfully added a new alert for <span class=\"font-bold\">#{alert.address}</span>"
else
@alert = T.let(alert, T.nilable(Alert))
# TODO: Is there a more sensible way of doing this?
@alerts = T.let(policy_scope(Alert), T.nilable(ActiveRecord::Relation))
render :new
end
end
Expand Down Expand Up @@ -117,8 +115,6 @@ def user_session
redirect_to alerts_path, notice: "You succesfully added a new alert for <span class=\"font-bold\">#{alert.address}</span>"
else
@alert = T.let(alert, T.nilable(Alert))
# TODO: Is there a more sensible way of doing this?
@alerts = T.let(policy_scope(Alert), T.nilable(ActiveRecord::Relation))
render :new
end

Expand Down

0 comments on commit 65c937a

Please sign in to comment.