Skip to content

Commit

Permalink
chore: Remove redundant semicolons
Browse files Browse the repository at this point in the history
This addresses an inspection hint.
  • Loading branch information
sschuberth committed Sep 21, 2023
1 parent c683df2 commit 574ed54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/git/semver/plugin/gradle/PrintTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ open class PrintTask @Inject constructor(private val prop: () -> Any, desc: Stri

@TaskAction
fun print() {
val fileName = this.file;
val fileName = this.file
if (fileName != null) {
File(fileName).writeText(prop().toString(), StandardCharsets.UTF_8)
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/git/semver/plugin/semver/SemVersion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,6 @@ class SemVersion(
val isPreRelease
get() = prefix.isNotEmpty() || number != null

override fun toString() = prefix + (number ?: "");
override fun toString() = prefix + (number ?: "")
}
}

0 comments on commit 574ed54

Please sign in to comment.