Skip to content

Commit

Permalink
fix: remove duplicate import statements (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitchaudharyy-TW committed Oct 10, 2022
1 parent ef20d68 commit 5d923e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[],
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5d923e5

Please sign in to comment.