Skip to content

Commit c374a17

Browse files
committed
Merge branch 'fix/block_count_casting'
# Conflicts: # src/main/java/multichain/command/BlockCommand.java
2 parents eb470f0 + 97958bd commit c374a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/multichain/command/BlockCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ public long getBlockCount() throws MultichainException {
205205
if (verifyInstance(objectBlockCount, long.class)) {
206206
stringBlockCount = (long) objectBlockCount;
207207
} else if (verifyInstance(objectBlockCount, Double.class)) {
208-
stringBlockCount = ((Double)objectBlockCount).longValue();
209-
}
208+
stringBlockCount = ((Double)objectBlockCount).longValue();
209+
}
210210

211211
return stringBlockCount;
212212
}

0 commit comments

Comments
 (0)