Skip to content

Commit

Permalink
Remove "redundant" begin block as per rubocop error
Browse files Browse the repository at this point in the history
  • Loading branch information
zbikmarc committed Jul 3, 2017
1 parent 6d1e343 commit ff033ab
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/kitchen/driver/gce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,11 @@ def wait_for_operation(operation)
end

def wait_for_server
begin
instance.transport.connection(state).wait_until_ready
rescue
error("Server not reachable. Destroying server...")
destroy(state)
raise
end
instance.transport.connection(state).wait_until_ready
rescue
error("Server not reachable. Destroying server...")
destroy(state)
raise
end

def zone_operation(operation_name)
Expand Down

0 comments on commit ff033ab

Please sign in to comment.