Skip to content

Files

Latest commit

 

History

History
28 lines (16 loc) · 423 Bytes

UnnecessaryNotNullOperator.md

File metadata and controls

28 lines (16 loc) · 423 Bytes

Pattern: Unnecessary !!

Issue: -

Description

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

Further Reading