From c8b0f1a7a363cb12c0b351b78cfc644a0706f5ab Mon Sep 17 00:00:00 2001 From: Malaber Date: Sun, 16 Mar 2025 12:41:47 +0100 Subject: [PATCH] Syntax improvements --- app/controllers/matches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb index 826043c..5224479 100644 --- a/app/controllers/matches_controller.rb +++ b/app/controllers/matches_controller.rb @@ -51,7 +51,7 @@ class MatchesController < ApplicationController Match.transaction do if @match.update(match_params) 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 unless UpdateGroupsGroupScoresAndSave.call(group: group).success? logger.warn "Updating groups group score failed for #{group}"