This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CommandBox: extract command text in handleCommandEntered() method
Command text is required twice in handleCommandEntered() method, thus, the TextInputControl#getText() method is called twice. This hinders readability. Let's extract the command text at the start of the method, so that TextInputControl#getText() is not called repeatedly.
- Loading branch information