HomeMusing Studio

Fix potential resource leaks from defer calls in for loop

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

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