Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
Change-Id: Ic2a246facffca683052bb56bf76ad21b5413d94a
  • Loading branch information
zhoney committed Jan 14, 2021
1 parent 7a0c7bf commit f81a3cf
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,6 @@ protected void save() {
}
}

private static boolean needSaveWithEx(String message) {
for (String error : ERROR_MESSAGES) {
if (message.contains(error)) {
return true;
}
}
return false;
}

protected void graph(HugeGraph graph) {
this.graph = graph;
}
Expand Down Expand Up @@ -165,6 +156,15 @@ public static <V> TaskCallable<V> fromClass(String className) {
}
}

private static boolean needSaveWithEx(String message) {
for (String error : ERROR_MESSAGES) {
if (message.contains(error)) {
return true;
}
}
return false;
}

public static <V> TaskCallable<V> empty(Exception e) {
return new TaskCallable<V>() {
@Override
Expand Down

0 comments on commit f81a3cf

Please sign in to comment.