Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Jan 28, 2025
1 parent 1717400 commit 2f2fd7f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1541,8 +1541,7 @@ private JComboBox<Ward> getWardComboBox() {

if (itemEvent.getStateChange() == ItemEvent.SELECTED) {
Object item = itemEvent.getItem();
if (item instanceof Ward) {
wardSelected = (Ward) item;
if (item instanceof Ward wardSelected) {
wardId = wardSelected.getCode();
List<MedicalInventory> medicalWardInventoryDraft;
List<MedicalInventory> medicalWardInventoryValidated;
Expand Down

0 comments on commit 2f2fd7f

Please sign in to comment.