Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/mlt-0055-item-picking' into mlt-…
Browse files Browse the repository at this point in the history
…0055-item-picking
  • Loading branch information
anotheroneofthese committed Oct 16, 2024
2 parents 7c4cec5 + 623dae6 commit 1f18c2a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ data class SynqOrderPickingConfirmationPayload(
val warehouse: String
) {
fun validate() {
if (operator.trim().isBlank()) {
if (operator.isBlank()) {
throw ValidationException("Operator name can not be blank")
}
if (warehouse.trim().isBlank()) {
if (warehouse.isBlank()) {
throw ValidationException("Warehouse location can not be blank")
}

Expand Down Expand Up @@ -129,10 +129,10 @@ data class OrderLine(
val attributeValue: List<AttributeValue>
) {
fun validate() {
if (productId.trim().isBlank()) {
if (productId.isBlank()) {
throw ValidationException("Product ID can not be blank")
}
if (hostName.trim().isBlank()) {
if (hostName.isBlank()) {
throw ValidationException("Hostname can not be blank")
}
if (quantity < 0) {
Expand Down

0 comments on commit 1f18c2a

Please sign in to comment.