🚧 Only require an Action in case of errors
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Nov 2024 21:42:08 +0000 (22:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Nov 2024 21:42:08 +0000 (22:42 +0100)
src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java

index 45642ce..644ccae 100644 (file)
@@ -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;