Skip to content

Commit

Permalink
Remove string format for MESSAGE_INVALID_DELIVERY_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
B-enguin committed Nov 2, 2023
1 parent 92e9662 commit ec4dd7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public CommandResult execute(Model model) throws CommandException {
Optional<Delivery> delivery = model.getDelivery(deliveryId);

if (delivery.isEmpty()) {
throw new CommandException(String.format(MESSAGE_INVALID_DELIVERY_ID, deliveryId));
throw new CommandException(MESSAGE_INVALID_DELIVERY_ID);
}

return new CommandResult(Messages.format(delivery.get()));
Expand Down

0 comments on commit ec4dd7e

Please sign in to comment.