1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Clean tmp_paths with mutation of the array

This commit is contained in:
Vyacheslav Alexeev 2020-07-13 08:45:54 +03:00
parent a7455dff86
commit f086e68bc8

View file

@ -26,8 +26,9 @@ module TmpPath
end
def clean_tmp_paths
tmp_paths.each { |path| delete_tmp_path(path) }
@tmp_paths = []
while path = tmp_paths.pop
delete_tmp_path(path)
end
end
def delete_tmp_path(path)