Code cleanup.

This commit is contained in:
Erik C. Thauvin 2022-02-14 22:38:51 -08:00
parent ea40d71f14
commit 4abdb268ef
5 changed files with 11 additions and 23 deletions

View file

@ -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)
}
}
}