mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 21:22:26 -05:00
combined nested if statements in ImapStore
This commit is contained in:
parent
57f364ca69
commit
961872edf0
@ -2204,8 +2204,8 @@ public class ImapStore extends Store {
|
|||||||
capabilityList = response;
|
capabilityList = response;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (capabilityList != null) {
|
if (capabilityList != null && !capabilityList.isEmpty() &&
|
||||||
if (!capabilityList.isEmpty() && ImapResponseParser.equalsIgnoreCase(capabilityList.get(0), CAPABILITY_CAPABILITY)) {
|
ImapResponseParser.equalsIgnoreCase(capabilityList.get(0), CAPABILITY_CAPABILITY)) {
|
||||||
if (K9.DEBUG) {
|
if (K9.DEBUG) {
|
||||||
Log.d(K9.LOG_TAG, "Saving " + capabilityList.size() + " capabilities for " + getLogId());
|
Log.d(K9.LOG_TAG, "Saving " + capabilityList.size() + " capabilities for " + getLogId());
|
||||||
}
|
}
|
||||||
@ -2218,8 +2218,6 @@ public class ImapStore extends Store {
|
|||||||
capabilities.add(((String)capability).toUpperCase(Locale.US));
|
capabilities.add(((String)capability).toUpperCase(Locale.US));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return responses;
|
return responses;
|
||||||
|
Loading…
Reference in New Issue
Block a user