Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit 05e6bfd

Browse files
author
Jon La Marr
committed
Swap to use isEmpty()
1 parent 075fea2 commit 05e6bfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eosiojava/src/main/java/one/block/eosiojava/models/rpcProvider/ContextFreeData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public String getSerialized() {
6969
}
7070

7171
public boolean hasData() {
72-
return this.data.size() > 0;
72+
return this.data.isEmpty();
7373
}
7474

7575
private void pushPrefix(ByteBuffer buffer, int length) {

0 commit comments

Comments
 (0)