Enable detekt rule TooGenericExceptionThrown and fix existing issue.
This commit is contained in:
parent
5d0bf5dbe0
commit
140271069c
2 changed files with 2 additions and 2 deletions
|
|
@ -23,5 +23,5 @@ import com.bumble.appyx.core.plugin.plugins
|
||||||
interface NodeInputs : Plugin
|
interface NodeInputs : Plugin
|
||||||
|
|
||||||
inline fun <reified I : NodeInputs> Node.inputs(): I {
|
inline fun <reified I : NodeInputs> Node.inputs(): I {
|
||||||
return plugins<I>().firstOrNull() ?: throw RuntimeException("Make sure to actually pass NodeInputs plugin to your node")
|
return requireNotNull(plugins<I>().firstOrNull()) { "Make sure to actually pass NodeInputs plugin to your node" }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ exceptions:
|
||||||
ThrowingExceptionsWithoutMessageOrCause:
|
ThrowingExceptionsWithoutMessageOrCause:
|
||||||
active: true
|
active: true
|
||||||
TooGenericExceptionThrown:
|
TooGenericExceptionThrown:
|
||||||
active: false
|
active: true
|
||||||
InstanceOfCheckForException:
|
InstanceOfCheckForException:
|
||||||
active: true
|
active: true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue