Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
CuddlyBunion341 committed Nov 4, 2024
1 parent ec348fd commit a5f7850
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/time_tracker_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ def create
def update
updated_params = timer_params

if updated_params[:timer_end].blank?
updated_params[:timer_end] = user_time_zone.now.asctime
end
updated_params[:timer_end] = user_time_zone.now.asctime if updated_params[:timer_end].blank?

return render_js(:update, :unprocessable_entity) unless @current_timer_session.update(updated_params)

Expand Down

0 comments on commit a5f7850

Please sign in to comment.