Skip to content

Commit

Permalink
fix checkstyle problem
Browse files Browse the repository at this point in the history
  • Loading branch information
niuniublockchain committed Jul 28, 2020
1 parent 43c2da6 commit 3be30d7
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,10 @@ public boolean validate() throws ContractValidateException {
long secondTokenBalance = contract.getSecondTokenBalance();

if (dynamicStore.getAllowSameTokenName() == 1) {
if (!Arrays.equals(firstTokenID, TRX_SYMBOL_BYTES)
&& !isNumber(firstTokenID)) {
if (!Arrays.equals(firstTokenID, TRX_SYMBOL_BYTES) && !isNumber(firstTokenID)) {
throw new ContractValidateException("first token id is not a valid number");
}
if (!Arrays.equals(secondTokenID, TRX_SYMBOL_BYTES)
&& !isNumber(secondTokenID)) {
if (!Arrays.equals(secondTokenID, TRX_SYMBOL_BYTES) && !isNumber(secondTokenID)) {
throw new ContractValidateException("second token id is not a valid number");
}
}
Expand Down

0 comments on commit 3be30d7

Please sign in to comment.