Pattern: Unnecessary !!
Issue: -
Reports unnecessary not-null operator usage (!!
) that can be removed by the user.
Example of incorrect code:
val a = 1
val b = a!!
Example of correct code:
val a = 1
val b = a
Pattern: Unnecessary !!
Issue: -
Reports unnecessary not-null operator usage (!!
) that can be removed by the user.
Example of incorrect code:
val a = 1
val b = a!!
Example of correct code:
val a = 1
val b = a