From: David ‘Bombe’ Roden Date: Wed, 13 Nov 2024 21:42:08 +0000 (+0100) Subject: 🚧 Only require an Action in case of errors X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=742de65044a1746a89293c31d91156763bfe615c;p=rhynodge.git 🚧 Only require an Action in case of errors --- diff --git a/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java b/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java index 45642ce..644ccae 100644 --- a/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java +++ b/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java @@ -15,7 +15,6 @@ import net.pterodactylus.rhynodge.Filter; import net.pterodactylus.rhynodge.Query; import net.pterodactylus.rhynodge.Reaction; import net.pterodactylus.rhynodge.State; -import net.pterodactylus.rhynodge.actions.EmailAction; import net.pterodactylus.rhynodge.Merger; import net.pterodactylus.rhynodge.output.DefaultOutput; import net.pterodactylus.rhynodge.output.Output; @@ -35,9 +34,9 @@ public class ReactionRunner implements Runnable { private static final Logger logger = getLogger(ReactionRunner.class); private final Reaction reaction; private final ReactionState reactionState; - private final EmailAction errorEmailAction; + private final Action errorEmailAction; - public ReactionRunner(Reaction reaction, ReactionState reactionState, EmailAction errorEmailAction) { + public ReactionRunner(Reaction reaction, ReactionState reactionState, Action errorEmailAction) { this.reactionState = reactionState; this.reaction = reaction; this.errorEmailAction = errorEmailAction;