lib/grumlin/request_error_factory.rb in grumlin-1.0.4 vs lib/grumlin/request_error_factory.rb in grumlin-1.1.0
- old
+ new
@@ -52,11 +52,12 @@
Grumlin::UnknownResponseStatus.new(status)
end
def already_exists_error(status)
return Grumlin::VertexAlreadyExistsError if status[:message]&.include?(VERTEX_ALREADY_EXISTS)
- return Grumlin::EdgeAlreadyExistsError if status[:message]&.include?(EDGE_ALREADY_EXISTS)
+
+ Grumlin::EdgeAlreadyExistsError if status[:message]&.include?(EDGE_ALREADY_EXISTS)
end
def concurrent_modification_error(status) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
return Grumlin::ConcurrentVertexInsertFailedError if status[:message]&.include?(CONCURRENT_VERTEX_INSERT_FAILED)
if status[:message]&.include?(CONCURRENT_VERTEX_PROPERTY_INSERT_FAILED)
@@ -64,9 +65,10 @@
end
return Grumlin::ConcurrentEdgeInsertFailedError if status[:message]&.include?(CONCURRENT_EDGE_INSERT_FAILED)
if status[:message]&.include?(CONCURRENT_EDGE_PROPERTY_INSERT_FAILED)
return Grumlin::ConcurrentEdgePropertyInsertFailedError
end
- return Grumlin::ConcurrentModificationError if status[:message]&.include?(CONCURRENCT_MODIFICATION_FAILED)
+
+ Grumlin::ConcurrentModificationError if status[:message]&.include?(CONCURRENCT_MODIFICATION_FAILED)
end
end
end