Skip to content

Add assertions in Parser class to validate command inputs#14

Merged
Nimastic merged 1 commit intomasterfrom
branch-A-Assertions
Sep 23, 2024
Merged

Add assertions in Parser class to validate command inputs#14
Nimastic merged 1 commit intomasterfrom
branch-A-Assertions

Conversation

@Nimastic
Copy link
Copy Markdown
Owner

  • Added assertions to ensure that the 'fullCommand' is neither null nor empty.
  • Ensured that the command part of the input is non-empty after splitting and trimming.
  • This ensures that the program catches invalid or unexpected inputs early during the parsing process.
  • Refactored the command parsing logic to improve code clarity and robustness.

- Added assertions to ensure that the 'fullCommand' is neither null nor empty.
- Ensured that the command part of the input is non-empty after splitting and trimming.
- This ensures that the program catches invalid or unexpected inputs early during the parsing process.
- Refactored the command parsing logic to improve code clarity and robustness.
@Nimastic Nimastic merged commit abee269 into master Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant