Skip to content

refactor: divide command switch into smaller methods

De Santiago Soto requested to merge cleanerCommand into main

This pull request refactors the Command class to improve code readability and maintainability by extracting command actions into separate methods. Additionally, it includes minor improvements to PlayerList and MatchList classes.

Refactoring Command Class:

PlayerList Improvements:

  • Improved the remove method to store the result of the removal operation and assert on the result (src/PlayerList.java).
  • Implemented the isEmpty method to check if the player list is empty (src/PlayerList.java).

MatchList Improvements:

  • Removed redundant print statements from the show method (src/MatchList.java).

Merge request reports