From 0c61bbbbcdfebb755a360d6c57ef5b7c5afd9466 Mon Sep 17 00:00:00 2001 From: OEOTYAN Date: Thu, 10 Oct 2024 00:41:21 +0800 Subject: [PATCH] fix: fix wrong name --- .../kotlin/com/liteldev/headeroutput/entity/BaseType.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/liteldev/headeroutput/entity/BaseType.kt b/src/main/kotlin/com/liteldev/headeroutput/entity/BaseType.kt index c8a39c7..528f40e 100644 --- a/src/main/kotlin/com/liteldev/headeroutput/entity/BaseType.kt +++ b/src/main/kotlin/com/liteldev/headeroutput/entity/BaseType.kt @@ -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" }