Minor
This commit is contained in:
@@ -68,25 +68,20 @@ internal class DescriptorRendererImpl(
|
||||
}
|
||||
}
|
||||
|
||||
private fun lt(): String {
|
||||
return escape("<")
|
||||
}
|
||||
|
||||
private fun gt(): String {
|
||||
return escape(">")
|
||||
}
|
||||
private fun lt() = escape("<")
|
||||
private fun gt() = escape(">")
|
||||
|
||||
private fun arrow(): String {
|
||||
when (textFormat) {
|
||||
DescriptorRenderer.TextFormat.PLAIN -> return escape("->")
|
||||
DescriptorRenderer.TextFormat.HTML -> return "→"
|
||||
return when (textFormat) {
|
||||
DescriptorRenderer.TextFormat.PLAIN -> escape("->")
|
||||
DescriptorRenderer.TextFormat.HTML -> "→"
|
||||
}
|
||||
}
|
||||
|
||||
private fun renderMessage(message: String): String {
|
||||
when (textFormat) {
|
||||
DescriptorRenderer.TextFormat.PLAIN -> return message
|
||||
DescriptorRenderer.TextFormat.HTML -> return "<i>" + message + "</i>"
|
||||
return when (textFormat) {
|
||||
DescriptorRenderer.TextFormat.PLAIN -> message
|
||||
DescriptorRenderer.TextFormat.HTML -> "<i>$message</i>"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user