Skip to content

Commit

Permalink
fix: remove redundant isContentDeliveryEnabled function from PublicCo…
Browse files Browse the repository at this point in the history
…nfigurationDTO (#2689)
  • Loading branch information
Anty0 authored Nov 12, 2024
1 parent d9d8278 commit 6ddba66
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import io.tolgee.dtos.response.PublicBillingConfigurationDTO
@Suppress("MemberVisibilityCanBePrivate", "unused")
class PublicConfigurationDTO(
@Schema(hidden = true)
val properties: TolgeeProperties,
properties: TolgeeProperties,
val machineTranslationServices: MtServicesDTO,
val billing: PublicBillingConfigurationDTO,
val version: String,
Expand Down Expand Up @@ -104,9 +104,4 @@ class PublicConfigurationDTO(
passwordResettable = properties.authentication.nativeEnabled
allowRegistrations = properties.authentication.registrationsAllowed
}

private fun isContentDeliveryEnabled(): Boolean {
return properties.contentDelivery.publicUrlPrefix != null &&
properties.contentDelivery.storage.s3.enabled
}
}

0 comments on commit 6ddba66

Please sign in to comment.