You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/04/26 13:30:40 UTC

[GitHub] [incubator-hugegraph] seagle-yuan commented on a diff in pull request #1852: fix core-issue checkstyle issue

seagle-yuan commented on code in PR #1852:
URL: https://github.com/apache/incubator-hugegraph/pull/1852#discussion_r858716618


##########
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftBackendStore.java:
##########
@@ -189,10 +189,9 @@ public void increaseCounter(HugeType type, long increment) {
 
     @Override
     public long getCounter(HugeType type) {
-         Object counter = this.queryByRaft(type, true,
-                                           o -> this.store.getCounter(type));
-         assert counter instanceof Long;
-         return (Long) counter;
+        Object counter = this.queryByRaft(type, true,o -> this.store.getCounter(type));

Review Comment:
   ok,I had fixed it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org