mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-12-22 20:32:38 +01:00
Iterate over dictionary's keys while removing stuff from it
This commit is contained in:
parent
47532c9033
commit
390e0f6c11
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ func remove_gone_stuff():
|
|||
all[o] = ""
|
||||
all["HEAD"] = ""
|
||||
# Delete objects, if they disappeared.
|
||||
for o in objects:
|
||||
for o in objects.keys():
|
||||
if not all.has(o):
|
||||
objects[o].queue_free()
|
||||
objects.erase(o)
|
||||
|
|
Loading…
Reference in a new issue