Remove unneeded continue logic
This commit is contained in:
parent
bb31161c80
commit
fa259faa2b
@ -19,10 +19,6 @@ for match in matches:
|
|||||||
dont_match = data.rfind("don't()", 0, start)
|
dont_match = data.rfind("don't()", 0, start)
|
||||||
if do_match == dont_match == -1: # Neither
|
if do_match == dont_match == -1: # Neither
|
||||||
total += int(match.group(1)) * int(match.group(2))
|
total += int(match.group(1)) * int(match.group(2))
|
||||||
continue
|
elif do_match > dont_match: # Do
|
||||||
if do_match > dont_match: # Do
|
|
||||||
total += int(match.group(1)) * int(match.group(2))
|
total += int(match.group(1)) * int(match.group(2))
|
||||||
continue
|
|
||||||
else: # Don't
|
|
||||||
continue
|
|
||||||
print(total)
|
print(total)
|
Loading…
x
Reference in New Issue
Block a user