Skip to content

Commit

Permalink
fix: Add default case for switch
Browse files Browse the repository at this point in the history
  • Loading branch information
ShyamKrishna33 committed Mar 13, 2024
1 parent c04f08e commit 4c850a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public Transaction parseTransaction(String input) {
case "c":
category = parseData[i + 1];
break;
default:
break;
}
}
assert amount != null;
Expand Down

0 comments on commit 4c850a8

Please sign in to comment.