lib/service_contract/avro/endpoint.rb in service_contract-0.0.10 vs lib/service_contract/avro/endpoint.rb in service_contract-0.1.0
- old
+ new
@@ -52,9 +52,11 @@
end
end
# seems kinda hacky
def member?
+ return false if parameters.empty?
+
first_param_type = parameters.first.type
first_param_type.complex? && first_param_type.name == protocol.main_type
end
end
end
\ No newline at end of file