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) // .withAccessToken(null) //
.build(); .build();
} else if (cloud instanceof PCloudCloud) { } else if (cloud instanceof PCloudCloud) {
//TODO proper logout?
return PCloudCloud // return PCloudCloud //
.aCopyOf((PCloudCloud) cloud) // .aCopyOf((PCloudCloud) cloud) //
.withUsername(null) // .withUsername(null) //
.withAccessToken(null) // .withAccessToken(null) //
.withUrl(null) //
.build(); .build();
} }
throw new IllegalStateException("Logout not supported for cloud with type " + cloud.type()); throw new IllegalStateException("Logout not supported for cloud with type " + cloud.type());