Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
fix: fix wrong name
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Oct 9, 2024
1 parent d4c09f4 commit 0c61bbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/kotlin/com/liteldev/headeroutput/entity/BaseType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ abstract class BaseType(
?.let {
return@run "$root/${it.dst}/${this.simpleName}.$HEADER_SUFFIX"
}
val parentRules = GeneratorConfig.getSortRules().namespace
parentRules.find { this.namespace.startsWith(it.namespace) }
val namespaceRules = GeneratorConfig.getSortRules().namespace
namespaceRules.find { this.namespace.startsWith(it.namespace) }
?.let {
return@run "$root/${it.dst}/${this.simpleName}.$HEADER_SUFFIX"
}
} else if (this is NamespaceType) {
val parentRules = GeneratorConfig.getSortRules().namespace
parentRules.find { this.name.startsWith(it.namespace) }
val namespaceRules = GeneratorConfig.getSortRules().namespace
namespaceRules.find { this.name.startsWith(it.namespace) }
?.let {
return@run "$root/${it.dst}/${this.simpleName}.$HEADER_SUFFIX"
}
Expand Down

0 comments on commit 0c61bbb

Please sign in to comment.