Skip to content

Commit

Permalink
fix: use es2020 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Sep 1, 2023
1 parent 1283e16 commit 40dae34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/loglevel-mixin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ export function makeLogEvent(severity, arg, args) {
}

const logevent = {
severity
severity,
...arg,
...args
};

if (arg instanceof Error) {
Expand All @@ -182,7 +184,7 @@ export function makeLogEvent(severity, arg, args) {
mapError(logevent, arg.error);
}

return Object.assign(logevent, arg, args);
return logevent;
}
}

Expand Down

0 comments on commit 40dae34

Please sign in to comment.