Skip to content

Commit 35387c8

Browse files
committed
test_maps.fypp: addition of return statement after checks
1 parent a4c579d commit 35387c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/hashmaps/test_maps.fypp

+2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ contains
205205
if (present) then
206206
call map%remove(key, existed)
207207
call check(error, existed, "chaining-removal-spec: Key not found in entry removal.")
208+
return
208209
else
209210
call map%map_entry(key)
210211
end if
@@ -429,6 +430,7 @@ contains
429430
if (present) then
430431
call map%remove(key, existed)
431432
call check(error, existed, "open-removal-spec: Key not found in entry removal.")
433+
return
432434
else
433435
call map%map_entry(key)
434436
end if

0 commit comments

Comments
 (0)