From 46fce4a90d6b42411258b5b11307d309bc500dd2 Mon Sep 17 00:00:00 2001 From: Ankit Chaudhary <46367738+Ankitchaudharyy@users.noreply.github.com> Date: Mon, 10 Oct 2022 21:21:58 +0530 Subject: [PATCH] fix: remove duplicate import statements (#343) Co-authored-by: ankitchaudharyy-TW --- src/lib/util.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/util.ts b/src/lib/util.ts index c40762ac5..707e3cfbd 100644 --- a/src/lib/util.ts +++ b/src/lib/util.ts @@ -4,7 +4,6 @@ import { pathToRegexp } from 'path-to-regexp' import Glee from './glee.js' import { GleeFunctionEvent } from './index.d' import GleeMessage from './message.js' -import Message from './message.js' interface IValidateDataReturn { errors?: void | betterAjvErrors.IOutputError[], @@ -42,7 +41,7 @@ export const getParams = (path: string, channel: string): {[key: string]: string * @return {GleeMessage} */ export const duplicateMessage = (message: GleeMessage): GleeMessage => { - const newMessage = new Message({ + const newMessage = new GleeMessage({ payload: message.payload, headers: message.headers, channel: message.channel,