Skip to content

Commit 511d107

Browse files
committed
Convert if to else
1 parent ff5b47d commit 511d107

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/database/quota/src/main/java/org/apache/cloudstack/api/response/QuotaResponseBuilderImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,8 +1250,7 @@ protected Pair<Long, List<Long>> getDomainIdsForQuotaStatement(Long finalAccount
12501250
Domain domain = domainDao.findByIdIncludingRemoved(domainId);
12511251
_accountMgr.checkAccess(caller, domain);
12521252
logger.debug("Limiting the Quota statement for the provided Domain [{}].", domainId);
1253-
}
1254-
if (domainId == null) {
1253+
} else {
12551254
domainId = caller.getDomainId();
12561255
logger.debug("Limiting the Quota statement for the caller's Domain [{}], as no 'domainid' was provided.", domainId);
12571256
}

0 commit comments

Comments
 (0)