Permalink
Browse files

Clean up the exit status stuff

  • Loading branch information...
1 parent 1bcae20 commit 577a67c157ad44e212e076f8df39b78b668ee9e9 @mitchellh committed Mar 17, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/libssh2/channel.rb
View
@@ -133,10 +133,7 @@ def wait
# Grab our exit status if we care about it
exit_status_cb = @stream_callbacks[:exit_status]
- if exit_status_cb
- exit_status = @native_channel.get_exit_status
- exit_status_cb.call(exit_status) if exit_status_cb
- end
+ exit_status_cb.call(@native_channel.get_exit_status) if exit_status_cb
end
protected

0 comments on commit 577a67c

Please sign in to comment.