Skip to content

Commit 6b33280

Browse files
committed
Remove un-necessary collesce operators
1 parent 14b92fe commit 6b33280

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/get-rates-with-shipment-details/format-response.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ function formatCustoms(
242242
return {
243243
contents: customs?.contents,
244244
nonDelivery: customs?.non_delivery,
245-
customsItems: customs?.customs_items ?? []
246-
? formatCustomsItems(customs?.customs_items ?? [])
245+
customsItems: customs?.customs_items
246+
? formatCustomsItems(customs.customs_items)
247247
: null,
248248
};
249249
}

0 commit comments

Comments
 (0)