fix: set url to null, add TODO

This commit is contained in:
Manuel Jenny 2021-03-16 14:53:52 +01:00
parent c9a73ced8f
commit 6a249056b0
No known key found for this signature in database
GPG Key ID: 1C80FE62B2BEAA18

View File

@ -49,10 +49,12 @@ class LogoutCloud {
.withAccessToken(null) //
.build();
} else if (cloud instanceof PCloudCloud) {
//TODO proper logout?
return PCloudCloud //
.aCopyOf((PCloudCloud) cloud) //
.withUsername(null) //
.withAccessToken(null) //
.withUrl(null) //
.build();
}
throw new IllegalStateException("Logout not supported for cloud with type " + cloud.type());