mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Until this commit the err callback closed the channel to prevent the close callback from being invoked, because the close callback invoked the out handler (which we don't want when the job was unsuccessful). This mostly worked but if closing the channel took too long, which it seemed it could when dealing with large files, the close callback could be called in the meantime. This commit removes the unreliable code. The parent commit ensured that the close callback only calls the out handler when the job succeeded, so we no longer need to try to prevent the close callback from being called.