Skip to content

Commit 4e2e6ea

Browse files
Clean up code.
1 parent 9a23086 commit 4e2e6ea

File tree

7 files changed

+4
-12
lines changed

7 files changed

+4
-12
lines changed

context/getting-started.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,3 @@ call.deadline.exceeded? # => false
129129
# Access peer information
130130
call.peer # => Protocol::HTTP::Address
131131
```
132-
133-

design.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -779,10 +779,10 @@ module Protocol
779779
# Handle the RPC
780780
begin
781781
handle_rpc(request, handler, handler_method, request_class, response_class)
782-
rescue Error => e
783-
trailers_only_error(e.status_code, e.message)
784-
rescue => e
785-
trailers_only_error(Status::INTERNAL, e.message)
782+
rescue Error => error
783+
trailers_only_error(e.status_code, error.message)
784+
rescue => error
785+
trailers_only_error(Status::INTERNAL, error.message)
786786
end
787787
end
788788

guides/getting-started/readme.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,3 @@ call.deadline.exceeded? # => false
129129
# Access peer information
130130
call.peer # => Protocol::HTTP::Address
131131
```
132-
133-

lib/protocol/grpc/version.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ module GRPC
1010
VERSION = "0.3.0"
1111
end
1212
end
13-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@
1010
expect(Protocol::GRPC::VERSION).to be =~ /\d+\.\d+\.\d+/
1111
end
1212
end
13-

test/protocol/grpc/error.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,3 @@
8787
end
8888
end
8989
end
90-

test/protocol/grpc/handler.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,3 @@ def say_hello(_input, _output, _call)
244244
end
245245
end
246246
end
247-

0 commit comments

Comments
 (0)