From: David ‘Bombe’ Roden Date: Sun, 3 Aug 2014 17:09:58 +0000 (+0200) Subject: Remove unnecessary casts. X-Git-Tag: 0.9-rc1^2~3^2~173 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7d5fb2c8fcd358062314ebe923483fc5d1b2042d;p=Sone.git Remove unnecessary casts. --- diff --git a/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java b/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java index aac4924..d9389b7 100644 --- a/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java +++ b/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java @@ -372,14 +372,10 @@ public class WebOfTrustUpdater extends AbstractService { public void run() { try { if (score != null) { - if (trustee instanceof DefaultIdentity) { - ((DefaultIdentity) trustee).setTrust(truster, new Trust(score, null, 0)); - } + trustee.setTrust(truster, new Trust(score, null, 0)); webOfTrustConnector.setTrust(truster, trustee, score, comment); } else { - if (trustee instanceof DefaultIdentity) { - ((DefaultIdentity) trustee).setTrust(truster, null); - } + trustee.setTrust(truster, null); webOfTrustConnector.removeTrust(truster, trustee); } finish(true);