mstruebing / tldr

Golang command line client for tldr https://github.com/tldr-pages/tldr
MIT License
262 stars 24 forks source link

Issue #22: Too many open files #25

Closed gavinwade12 closed 6 years ago

gavinwade12 commented 6 years ago

This PR addresses issue #22. To prevent all the defer statements from loading up the call stack, I've moved the loop body to its own function. This allows the defer statements to be executed each time copyZipFile returns.