android studio - Kotlin suppress 'condition is always true' -


wasting more time scouring through countless number of inspections (which know how enable , disable), cannot find way disable particular inspection of 'condition true' kotlin (not java) file in android studio. know i'm doing , don't need inspection @ all, more appropriately, i'd suppress file or class or function or anything.

incredibly frustrating, always.

//i'm aware condition below true if(android_sucks) {     fml() } 

in android studio,

  1. put text cursor in condition you'd suppress,
  2. press alt+enter on keyboard , pops up:

💡 simplify expression ⯈

  1. press right arrow on keyboard,
  2. select of options like, example:

    • disable inspection
    • suppress 'constantconditionif' statement/fun/class/file

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -