Skip to content

Commit

Permalink
Remove redundant else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
splittingred committed Nov 26, 2018
1 parent ca315dc commit 72d4f97
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/gruf/rspec/error_matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,7 @@ def run_serialized_block
# Deserialize the error from the response
#
def deserialize_error
if @error_serializer
@error_serializer.new(@rpc_response.to_status.metadata[Gruf.error_metadata_key.to_sym]).deserialize
else
nil
end
@error_serializer.new(@rpc_response.to_status.metadata[Gruf.error_metadata_key.to_sym]).deserialize if @error_serializer
end
end
end
Expand Down

0 comments on commit 72d4f97

Please sign in to comment.