Code cleanup.
This commit is contained in:
parent
ea40d71f14
commit
4abdb268ef
5 changed files with 11 additions and 23 deletions
|
@ -48,11 +48,11 @@ object ExceptionSanitizer {
|
|||
if (!cause?.message.isNullOrBlank()) {
|
||||
return ModuleException(
|
||||
debugMessage,
|
||||
cause!!.javaClass.name + ": " + cause!!.message!!.replaceEach(search, obfuscate),
|
||||
cause?.javaClass?.name + ": " + cause?.message?.replaceEach(search, obfuscate),
|
||||
this
|
||||
)
|
||||
} else if (!message.isNullOrBlank()) {
|
||||
return ModuleException(debugMessage, message!!.replaceEach(search, obfuscate), this)
|
||||
return ModuleException(debugMessage, message?.replaceEach(search, obfuscate), this)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue