Skip to content

Commit

Permalink
fix(backend): resolve ktlint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed May 3, 2024
1 parent ff9f8e3 commit f207aa2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fun WebhookInput.mapToPartnerInput(): PartnerInput {
fun CmsPartnerInput.getTwitterUrl(): String? {
return if (twitterAccount != null && twitterAccount != "") {
if (twitterAccount.contains("twitter.com").not()) {
"https://twitter.com/${twitterAccount}"
"https://twitter.com/$twitterAccount"
} else {
twitterAccount
}
Expand All @@ -35,7 +35,7 @@ fun CmsPartnerInput.getTwitterUrl(): String? {
fun CmsPartnerInput.getLinkedInUrl(): String? {
return if (linkedinAccount != null && linkedinAccount != "") {
if (linkedinAccount.contains("linkedin.com").not()) {
"https://linkedin.com/company/${linkedinAccount}"
"https://linkedin.com/company/$linkedinAccount"
} else {
linkedinAccount
}
Expand Down

0 comments on commit f207aa2

Please sign in to comment.