Skip to content

Commit

Permalink
Merge pull request #363 from B-enguin/362-delivery-view-string-format
Browse files Browse the repository at this point in the history
Remove string format for MESSAGE_INVALID_DELIVERY_ID
  • Loading branch information
juliusgambe authored Nov 2, 2023
2 parents 92e9662 + ec4dd7e commit 530e7a2
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 530e7a2

Please sign in to comment.