Skip to content

Commit

Permalink
🤦 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Sep 7, 2023
1 parent 37ad994 commit d5263d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot/events/handlers/cleanHandler.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { EventHandler, EventHandlerError } from "src/bot/events/handlers/EventHandler";
import { HelpCommand } from "src/bot/parse/ParsedCommand";
import { CleanCommand } from "src/bot/parse/ParsedCommand";
import { cleanComments, reactToComment, removeReactionToComment } from "src/github";

export async function cleanHandler(this: EventHandler): Promise<void> {
// eslint-disable-next-line no-invalid-this
const { ctx, octokit, commentParams, parsedCommand, payload, pr } = this;
if (!(parsedCommand instanceof HelpCommand)) {
if (!(parsedCommand instanceof CleanCommand)) {
throw new EventHandlerError();
}

Expand Down

0 comments on commit d5263d6

Please sign in to comment.