Skip to content

Commit

Permalink
fix(logger): parameters weren't being solved correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 committed Nov 14, 2019
1 parent eef701d commit aa7d3fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions garden-service/src/logger/log-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ export interface LogEntryConstructor extends LogEntryParams {
}

function resolveParams(params?: string | UpdateLogEntryParams): UpdateLogEntryParams {
if (!params) {
return {}
} else if (typeof params === "string") {
if (typeof params === "string") {
return { msg: params }
} else if (!params) {
return {}
} else {
return params
}
Expand Down

0 comments on commit aa7d3fa

Please sign in to comment.