From: David ‘Bombe’ Roden Date: Thu, 27 Mar 2014 16:11:58 +0000 (+0100) Subject: Simplify state filtering. X-Git-Tag: v2~241 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=edc3de44887482cebe78fa45caa29c59588d5d89;p=rhynodge.git Simplify state filtering. --- diff --git a/src/main/java/net/pterodactylus/rhynodge/engine/Engine.java b/src/main/java/net/pterodactylus/rhynodge/engine/Engine.java index bb42289..91c5df9 100644 --- a/src/main/java/net/pterodactylus/rhynodge/engine/Engine.java +++ b/src/main/java/net/pterodactylus/rhynodge/engine/Engine.java @@ -154,9 +154,7 @@ public class Engine extends AbstractExecutionThreadService { /* convert states. */ for (Filter filter : nextReaction.get().getReaction().filters()) { if (state.success()) { - net.pterodactylus.rhynodge.State newState = filter.filter(state); - //logger.debug(String.format("Old state is %s, new state is %s.", state, newState)); - state = newState; + state = filter.filter(state); } } if (!state.success()) {