Skip to content

Commit

Permalink
Improved code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeme Praks committed Jan 14, 2025
1 parent b0d19db commit 4c5f054
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ class PlaceholderReplacer(
if (msgExp is IrConst<*>) {
val value = msgExp.value
if (value is String && value.contains(placeholder)) {
val pair =
val (newExpression, argIndexAfterReplace) =
replacePlaceholdersInStringConstant(value, valueArguments, newArgIndex, placeholder)
val newExpression = pair.first
newArgIndex = pair.second
return ReplaceResult(newExpression!!, newArgIndex)
return ReplaceResult(newExpression!!, argIndexAfterReplace)
}
} else if (msgExp is IrCall) {
val dispatchResult =
Expand Down

0 comments on commit 4c5f054

Please sign in to comment.