forked from Qortal/qortal
Removed unnecessary continue (last statement in a loop)
This commit is contained in:
parent
64537ad705
commit
cc95106019
@ -233,8 +233,7 @@ public class AddressesResource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (DataException e) {
|
} catch (DataException e) {
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort by level
|
// Sort by level
|
||||||
|
@ -159,8 +159,7 @@ public class BlockMinter extends Thread {
|
|||||||
int level = mintingAccount.getEffectiveMintingLevel();
|
int level = mintingAccount.getEffectiveMintingLevel();
|
||||||
if (level < BlockChain.getInstance().getMinAccountLevelForBlockSubmissions()) {
|
if (level < BlockChain.getInstance().getMinAccountLevelForBlockSubmissions()) {
|
||||||
madi.remove();
|
madi.remove();
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Needs a mutable copy of the unmodifiableList
|
// Needs a mutable copy of the unmodifiableList
|
||||||
|
@ -1921,8 +1921,7 @@ public class Controller extends Thread {
|
|||||||
// Disregard peers that don't have a recent block
|
// Disregard peers that don't have a recent block
|
||||||
if (peerChainTipData.getTimestamp() == null || peerChainTipData.getTimestamp() < minLatestBlockTimestamp) {
|
if (peerChainTipData.getTimestamp() == null || peerChainTipData.getTimestamp() < minLatestBlockTimestamp) {
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return peers;
|
return peers;
|
||||||
|
@ -538,7 +538,6 @@ public class OnlineAccountsManager {
|
|||||||
|
|
||||||
if (++i > 1 + 1) {
|
if (++i > 1 + 1) {
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (DataException e) {
|
} catch (DataException e) {
|
||||||
|
@ -208,8 +208,7 @@ public class ArbitraryDataCleanupManager extends Thread {
|
|||||||
Base58.encode(arbitraryTransactionData.getSignature())));
|
Base58.encode(arbitraryTransactionData.getSignature())));
|
||||||
|
|
||||||
ArbitraryTransactionUtils.convertFileToChunks(arbitraryTransactionData, now, STALE_FILE_TIMEOUT);
|
ArbitraryTransactionUtils.convertFileToChunks(arbitraryTransactionData, now, STALE_FILE_TIMEOUT);
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (DataException e) {
|
} catch (DataException e) {
|
||||||
@ -284,8 +283,7 @@ public class ArbitraryDataCleanupManager extends Thread {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (DataException e) {
|
} catch (DataException e) {
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return pathList;
|
return pathList;
|
||||||
|
@ -230,8 +230,7 @@ public class ArbitraryDataManager extends Thread {
|
|||||||
// Remove transactions that we already have local data for
|
// Remove transactions that we already have local data for
|
||||||
if (hasLocalData(arbitraryTransaction)) {
|
if (hasLocalData(arbitraryTransaction)) {
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signatures.isEmpty()) {
|
if (signatures.isEmpty()) {
|
||||||
@ -313,8 +312,7 @@ public class ArbitraryDataManager extends Thread {
|
|||||||
// Remove transactions that we already have local data for
|
// Remove transactions that we already have local data for
|
||||||
if (hasLocalMetadata(arbitraryTransaction)) {
|
if (hasLocalMetadata(arbitraryTransaction)) {
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signatures.isEmpty()) {
|
if (signatures.isEmpty()) {
|
||||||
|
@ -291,7 +291,6 @@ public class ArbitraryDataStorageManager extends Thread {
|
|||||||
arbitraryTransactionDataList.add(arbitraryTransactionData);
|
arbitraryTransactionDataList.add(arbitraryTransactionData);
|
||||||
|
|
||||||
} catch (DataException e) {
|
} catch (DataException e) {
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,7 +344,6 @@ public class ArbitraryDataStorageManager extends Thread {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -724,8 +724,7 @@ public class TradeBot implements Listener {
|
|||||||
|
|
||||||
} catch (DataException e) {
|
} catch (DataException e) {
|
||||||
LOGGER.info("Unable to determine failed state of AT {}", crossChainTradeData.qortalAtAddress);
|
LOGGER.info("Unable to determine failed state of AT {}", crossChainTradeData.qortalAtAddress);
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return updatedCrossChainTrades;
|
return updatedCrossChainTrades;
|
||||||
|
@ -180,8 +180,7 @@ public class SyncReport {
|
|||||||
|
|
||||||
// Sync went bad
|
// Sync went bad
|
||||||
syncEvent = null;
|
syncEvent = null;
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (SyncEvent se : syncEvents) {
|
for (SyncEvent se : syncEvents) {
|
||||||
|
Loading…
Reference in New Issue
Block a user