Refactor code to remove trailing whitespace and improve readability

- Cleaned up trailing whitespace in `games_controller.rb`, `game.rb`, and `validate_scenario.rb` to enhance code quality and maintain consistency across the codebase.
- Updated migration file `remove_unique_game_constraint.rb` to remove unnecessary whitespace, ensuring a cleaner migration history.
- Improved overall readability of the code by eliminating redundant blank lines in various files.
This commit is contained in:
Z. Cliffe Schreuders
2025-12-04 23:17:34 +00:00
parent c7d9f5e3cf
commit f0ffb3fdfd
4 changed files with 43 additions and 50 deletions

View File

@@ -16,8 +16,3 @@ class RemoveUniqueGameConstraint < ActiveRecord::Migration[7.0]
name: 'index_games_on_player_and_mission_non_unique'
end
end

View File

@@ -529,7 +529,6 @@ def check_recommended_fields(json_data)
room['objects'].each_with_index do |obj, idx|
path = "rooms/#{room_id}/objects[#{idx}]"
warnings << "Missing recommended field: '#{path}/observations' - helps players understand what items are" unless obj.key?('observations')
end
end
@@ -738,4 +737,3 @@ def main
end
main if __FILE__ == $PROGRAM_NAME