Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
Make link copying way too safe
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverAndro committed Jun 11, 2022
1 parent 1e81f56 commit 20e2bf3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ data class ModrinthProjectCreate private constructor(
curseforgeProject.categories
),
discord_url = ModifoldArgs.args.discordServer.takeIf { it.isNotBlank() },
issues_url = curseforgeProject.links.issuesUrl.takeIf { it.isNotBlank() },
source_url = curseforgeProject.links.sourceUrl.takeIf { it.isNotBlank() },
wiki_url = curseforgeProject.links.wikiUrl.takeIf { it.isNotBlank() }
issues_url = curseforgeProject.links.issuesUrl.takeIf { it?.isNotBlank() == true },
source_url = curseforgeProject.links.sourceUrl.takeIf { it?.isNotBlank() == true },
wiki_url = curseforgeProject.links.wikiUrl.takeIf { it?.isNotBlank() == true }
)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.p03w.modifold.curseforge_schema

data class CurseforgeLinks(
val websiteUrl: String,
val wikiUrl: String,
val issuesUrl: String,
val sourceUrl: String
val websiteUrl: String?,
val wikiUrl: String?,
val issuesUrl: String?,
val sourceUrl: String?
)
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "com.github.p03w"
version = "2.1.2"
version = "2.1.3"

repositories {
mavenCentral()
Expand Down

0 comments on commit 20e2bf3

Please sign in to comment.