Skip to content

Commit 8e4ca19

Browse files
committed
empty order default to post phase
1 parent 5595b68 commit 8e4ca19

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/kotlin/com/lambda/core/loader

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/core/loader/Loader.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object Loader {
3737
getInstances<Loadable> { forPackages("com.lambda") }
3838
.associateWith { it::class.findAnnotation<LoaderOrder>() }
3939
.toList()
40-
.sortedBy { (_, annotation) -> annotation?.phase }
40+
.sortedBy { (_, annotation) -> annotation?.phase ?: Phase.Post }
4141
.sortedByDescending { (_, annotation) -> annotation?.priority }
4242
.map { it.first }
4343

0 commit comments

Comments
 (0)