X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FOwnIdentity.java;h=23845205c33355952f21adecb41ef696f8b2abac;hb=5e474d0d5ee39c2fd3dfd4376308ad7f8e55dd5d;hp=a8f24cb49ea0bda981d28f28310ddfd3cfebb08a;hpb=e8e813b99a7945130099845190efc4fca16b13bf;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java index a8f24cb..2384520 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java @@ -70,9 +70,7 @@ public class OwnIdentity extends Identity { * plugin */ public void addContext(String context) throws PluginException { - if (getContexts().add(context)) { - webOfTrustConnector.addContext(this, context); - } + webOfTrustConnector.addContext(this, context); } /** @@ -85,9 +83,7 @@ public class OwnIdentity extends Identity { * plugin */ public void removeContext(String context) throws PluginException { - if (getContexts().remove(context)) { - webOfTrustConnector.removeContext(this, context); - } + webOfTrustConnector.removeContext(this, context); } /**