Skip to content

Commit dd060c5

Browse files
committed
get rid of an if
1 parent 91d8e0f commit dd060c5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

domain_model.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ def allocate_to(order, source):
2727
def allocate_to_sources(order, sources):
2828
allocations = {}
2929
for sku, quantity in order.items():
30-
if sku in allocations:
31-
continue
3230
for source in sources:
3331
allocate_line(sku, quantity, source, allocations)
3432
if sku in allocations:

0 commit comments

Comments
 (0)