Syntax improvements

This commit is contained in:
Daniel Schädler 2025-03-16 12:41:47 +01:00
parent 2c46c2c40f
commit c8b0f1a7a3
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class MatchesController < ApplicationController
Match.transaction do Match.transaction do
if @match.update(match_params) if @match.update(match_params)
handle_match_end if new_state == 'finished' handle_match_end if new_state == 'finished'
if @match.group_match? and new_state == "in_progress" if @match.group_match? && new_state == 'in_progress'
group = @match.group group = @match.group
unless UpdateGroupsGroupScoresAndSave.call(group: group).success? unless UpdateGroupsGroupScoresAndSave.call(group: group).success?
logger.warn "Updating groups group score failed for #{group}" logger.warn "Updating groups group score failed for #{group}"