Skip to content

Commit

Permalink
Add explicit return type
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Jan 30, 2024
1 parent c4cfafb commit 8e66c3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class DataClassTypedIDsRule(config: Config) : Rule(config) {
return false
}

private fun failureMessage(klass: KtClass, parameter: KtParameter) = buildString {
private fun failureMessage(klass: KtClass, parameter: KtParameter): String = buildString {
val paramType = parameter.typeReference?.text
append("Data class '${klass.name}' should use type-safe IDs ")
append("instead of $paramType for property '${parameter.name}'. ")
Expand Down

0 comments on commit 8e66c3e

Please sign in to comment.