Skip to content

Commit

Permalink
style: apply code style
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Nov 26, 2024
1 parent 61519e1 commit 058a138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export class LifecycleRepository extends Set<Lifecycle> implements Sortable<Life
if (a.constructor === b.constructor) {
return a instanceof NamedLifecycle
/* eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- false-positive */
? a.compare(b as NamedLifecycle)
? a.compare(b as typeof a)
/* eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- false-positive */
: a.localeCompare(b as LifecyclePhase)
: a.localeCompare(b as typeof a)
}
return a.constructor.name.localeCompare(b.constructor.name)
}
Expand Down

0 comments on commit 058a138

Please sign in to comment.