Follow-up to #8489. We don't need to call Close in the err and success cases, we can just do it after Readdirnames returns. Signed-off-by: Danny Canter <danny@dcantah.dev>
Follow-up to #8489. We don't need to call Close in the err and success cases, we can just do it after Readdirnames returns. Signed-off-by: Danny Canter <danny@dcantah.dev>