fun getOwner()

in ruler-common/src/main/java/com/spotify/ruler/common/ownership/OwnershipInfo.kt [46:52]


    fun getOwner(component: String, componentType: ComponentType): String {
        val owner = when (componentType) {
            ComponentType.INTERNAL -> explicitOwnershipEntries[component]
            ComponentType.EXTERNAL -> explicitOwnershipEntries[component.substringBeforeLast(':')]
        }
        return owner ?: getWildcardOwner(component) ?: defaultOwner
    }