Skip to content

Commit

Permalink
refactor: use object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowtime2000 committed Nov 29, 2020
1 parent 821f9ca commit a8fc369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ export default function render(
}

export function renderAsync(template: string | TemplateFunction, data: object, config?: PartialConfig, cb?: CallbackFn): string | Promise<string> | void {
return render(template, data, { ...config, async: true }, cb)
return render(template, data, Object.assign({}, config, { async: true }), cb)
}

0 comments on commit a8fc369

Please sign in to comment.