Skip to content

Commit

Permalink
improve readability
Browse files Browse the repository at this point in the history
Signed-off-by: Julia Plewa <jplewa@virtuslab.com>
  • Loading branch information
jplewa committed Jul 19, 2023
1 parent 398d96a commit 3d03e16
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ data class PulumiName(
val isProvider: Boolean,
) {
val namespace: List<String>
get() = (
baseNamespace +
(providerNameOverride ?: providerName) +
moduleName
)
.filterNotNull()
.filter { it.isNotBlank() }
.map { it.replace("-", "") }
get() {
val effectiveProviderName = (providerNameOverride ?: providerName)
val namespaceSections = baseNamespace + effectiveProviderName + moduleName
return namespaceSections
.filterNotNull()
.filter { it.isNotBlank() }
.map { it.replace("-", "") }
}

private data class Modifiers(
val nameSuffix: String,
Expand Down

0 comments on commit 3d03e16

Please sign in to comment.