From 7d5fb2c8fcd358062314ebe923483fc5d1b2042d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 3 Aug 2014 19:09:58 +0200 Subject: [PATCH] Remove unnecessary casts. --- src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); -- 2.7.4