From ce063f5faaa901086dc2e05128c8451262f385a9 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 15 Feb 2021 13:40:54 +0000 Subject: [PATCH] Fixed error_string bug in match generations --- app/models/tournament.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/tournament.rb b/app/models/tournament.rb index 8f0f8af..519b0c0 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -145,17 +145,17 @@ class Tournament < ActiveRecord::Base end def match_generation_error - errorString = "There is a tournament error." + error_string = "There is a tournament error." modified_sixteen_man_error = modified_sixteen_man_number_of_wrestlers double_elim_error = double_elim_number_of_wrestlers if pool_to_bracket_weights_with_too_many_wrestlers != nil - errorString = errorString + " The following weights have too many wrestlers " + error_string = error_string + " The following weights have too many wrestlers " pool_to_bracket_weights_with_too_many_wrestlers.each do |w| - errorString = errorString + "#{w.max} " + error_string = error_string + "#{w.max} " end - return errorString + return error_string elsif modified_sixteen_man_error.length > 0 - return errorString + modified_sixteen_man_error + return error_string + modified_sixteen_man_error elsif double_elim_error.length > 0 return error_string + double_elim_error else