Skip to content

Commit

Permalink
diffs from new prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Nov 21, 2023
1 parent 852f06a commit 867a5c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function orElse<T>(obj: T | undefined, defaultValue: T | (() => T)): T {
return obj != null
? obj
: isFunction(defaultValue)
? defaultValue()
: defaultValue
? defaultValue()
: defaultValue
}

export function fromEntries(arr: [string | undefined, any][]) {
Expand Down
4 changes: 2 additions & 2 deletions src/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export class Task<T = any> {
return this.#d.pending
? "pending"
: this.#d.rejected
? "rejected"
: "resolved"
? "rejected"
: "resolved"
}

onStart(opts: TaskOptions) {
Expand Down

0 comments on commit 867a5c5

Please sign in to comment.