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:
parent
a7455dff86
commit
f086e68bc8
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue