Skip to content

Commit

Permalink
chore: fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrandahl committed Jun 29, 2023
1 parent b97a80e commit 0445255
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/browse_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def setup_view_state(user_selections)
def render_view_state(view_state)
@view_state = view_state
if view_state.respond_to?(:[]) && view_state[:error]
Rails.logger.debug { "Application experienced an issue with this request: #{view_state}" }
Rails.logger.debug { "Application experienced an issue with this request: #{view_state}" } if Rails.env.development? # rubocop:disable Metrics/LineLength
render_request_error(@view_state.user_selections, :internal_server_error)
else
respond_to do |format|
Expand All @@ -71,7 +71,7 @@ def render_view_state(view_state)

# Look at the `action` parameter, which may be set by various action buttons
# on the form, to determine whether we need to do any processing before
# dislaying the form
# displaying the form
def process_form_action(view_state)
action = view_state.user_selections.action

Expand Down Expand Up @@ -121,7 +121,7 @@ def match_multiple_locations(view_state, locations)

def view_result(view_state)
new_params = view_state.user_selections.without('form-action', nil).params
Rails.logger.info { "Redirecting to #{new_params}" }
Rails.logger.info { "Redirecting to #{new_params}" } if Rails.env.development?
redirect_to({
controller: :browse,
action: :show
Expand Down

0 comments on commit 0445255

Please sign in to comment.