From 755fb3405eb56f264559a60caf5115b4482392d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 11 Jun 2014 06:05:20 +0200 Subject: [PATCH] Small simplification. --- src/main/java/net/pterodactylus/sone/core/SoneInserter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index 9e5d578..51882e9 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -191,14 +191,13 @@ public class SoneInserter extends AbstractService { long lastModificationTime = 0; String lastInsertedFingerprint = lastInsertFingerprint; String lastFingerprint = ""; - Sone sone; while (!shouldStop()) { try { /* check every second. */ sleep(1000); /* don’t insert locked Sones. */ - sone = this.sone; + Sone sone = this.sone; if (core.isLocked(sone)) { /* trigger redetection when the Sone is unlocked. */ synchronized (sone) { -- 2.7.4