Homewrite.as

Fix potential resource leaks from defer calls in for loop

Authored by matt on Thu, Jan 9, 5:36 PM.

Description

Fix potential resource leaks from defer calls in for loop

This moves file operations inside the for loop into an anonymous func,
so the defer calls don't wait until the end of the handler call to
actually execute.

Ref T609

Details

Committed
mattThu, Jan 9, 5:36 PM
Parents
rWF6860c0a3ff23: Fix collection logic on import
Branches
Unknown
Tags
Unknown
Tasks
T609: Support importing TXT/MD files