-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve check for getting vertex when create edge #1477
Conversation
Change-Id: I86b7ac068154c52faf0d0d7f035cbf08178bf0d8
@@ -402,6 +403,12 @@ private static Vertex getVertex(HugeGraph graph, | |||
throw new IllegalArgumentException(String.format( | |||
"Invalid vertex id '%s'", id)); | |||
} | |||
if (vertex.label().equals(label)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!vertex.label().equals(label)) {
Codecov Report
@@ Coverage Diff @@
## master #1477 +/- ##
============================================
+ Coverage 63.63% 64.04% +0.41%
- Complexity 5863 5882 +19
============================================
Files 381 381
Lines 32190 32193 +3
Branches 4506 4507 +1
============================================
+ Hits 20484 20619 +135
+ Misses 9608 9466 -142
- Partials 2098 2108 +10
Continue to review full report at Codecov.
|
Change-Id: I86b7ac068154c52faf0d0d7f035cbf08178bf0d8
Change-Id: I86b7ac068154c52faf0d0d7f035cbf08178bf0d8