Skip to content

Commit e7ef335

Browse files
authored
docs: Removes #to_json from the Failure result, the wrapper handles taht (#25)
1 parent 9d87b8c commit e7ef335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/echo_endpoint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(a_var = 1)
1212
end
1313

1414
endpoint(:echo) { |msg| Success(msg.data) }
15-
endpoint(:echo_fail) { |msg| Failure({ failure: '*boom*', data: msg.data }.to_json) }
15+
endpoint(:echo_fail) { |msg| Failure({ failure: '*boom*', data: msg.data }) }
1616
end
1717

1818
if __FILE__ == $PROGRAM_NAME

0 commit comments

Comments
 (0)