Skip to content

Commit b532758

Browse files
committed
Remove duplicated check
1 parent fc92e39 commit b532758

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaSummaryCmd.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,10 @@ public Long getProjectId() {
120120
}
121121

122122
public QuotaAccountStateFilter getAccountStateToShow() {
123-
if (StringUtils.isNotBlank(accountStateToShow)) {
124-
QuotaAccountStateFilter state = QuotaAccountStateFilter.getValue(accountStateToShow);
125-
if (state != null) {
126-
return state;
127-
}
123+
QuotaAccountStateFilter state = QuotaAccountStateFilter.getValue(accountStateToShow);
124+
if (state != null) {
125+
return state;
128126
}
129-
130127
return QuotaAccountStateFilter.ACTIVE;
131128
}
132129

0 commit comments

Comments
 (0)