Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 961872ed authored by András Veres-Szentkirályi's avatar András Veres-Szentkirályi
Browse files

combined nested if statements in ImapStore

parent 57f364ca
Loading
Loading
Loading
Loading
+12 −14
Original line number Diff line number Diff line
@@ -2204,8 +2204,8 @@ public class ImapStore extends Store {
                    capabilityList = response;
                }

                if (capabilityList != null) {
                    if (!capabilityList.isEmpty() && ImapResponseParser.equalsIgnoreCase(capabilityList.get(0), CAPABILITY_CAPABILITY)) {
                if (capabilityList != null && !capabilityList.isEmpty() &&
                        ImapResponseParser.equalsIgnoreCase(capabilityList.get(0), CAPABILITY_CAPABILITY)) {
                    if (K9.DEBUG) {
                        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));
                        }
                    }

                    }
                }
            }
            return responses;