mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-25 18:55:28 -06:00
Hard to choose between the lock with a defer unlock in an anonymous function vs just having an explicit unlock at the end with additional unlocks before any early returns. The former is less error prone, but the former is much more readable, especially if the anonymous function would have needed to return an error value.