From 5d923e5988c62f721a8aa5bdd8c0ab2ca60a2753 Mon Sep 17 00:00:00 2001 From: ankitchaudharyy-TW Date: Mon, 10 Oct 2022 13:16:55 +0530 Subject: [PATCH] fix: remove duplicate import statements (#338) --- 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,