Cleanup.
This commit is contained in:
parent
ebaca3340f
commit
a0e2750c01
1 changed files with 1 additions and 6 deletions
|
@ -37,12 +37,7 @@ import kotlinx.serialization.json.Json
|
||||||
import kotlinx.serialization.json.JsonConfiguration
|
import kotlinx.serialization.json.JsonConfiguration
|
||||||
import javax.servlet.http.HttpServletRequest
|
import javax.servlet.http.HttpServletRequest
|
||||||
|
|
||||||
private fun String?.ifNull(): String {
|
private fun String?.ifNull() = this ?: ""
|
||||||
if (this == null) {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A comment to send to Akismet.
|
* A comment to send to Akismet.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue