1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Rename confusing vars after CR

This commit is contained in:
David A. Velasco 2016-12-16 09:45:25 +01:00
parent 455cabb72b
commit b2034e1be2

View File

@ -45,12 +45,12 @@ public class DynamicSessionManager implements OwnCloudClientManager {
@Override
public OwnCloudClient removeClientFor(OwnCloudAccount account) {
OwnCloudClient clientRemoved = mSimpleFactoryManager.removeClientFor(account);
OwnCloudClient clientRemoved2 = mSingleSessionManager.removeClientFor(account);
if (clientRemoved2 != null) {
return clientRemoved2;
OwnCloudClient clientRemovedFromFactoryManager = mSimpleFactoryManager.removeClientFor(account);
OwnCloudClient clientRemovedFromSingleSessionManager = mSingleSessionManager.removeClientFor(account);
if (clientRemovedFromSingleSessionManager != null) {
return clientRemovedFromSingleSessionManager;
} else {
return clientRemoved;
return clientRemovedFromFactoryManager;
}
// clientRemoved and clientRemoved2 should not be != null at the same time
}