Skip to content

Commit

Permalink
Update detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt…
Browse files Browse the repository at this point in the history
…/rules/style/BracesOnWhenStatements.kt

Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
  • Loading branch information
VitalyVPinchuk and TWiStErRob committed Mar 7, 2023
1 parent 40647b8 commit 2e41d56
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -19,7 +19,7 @@ import org.jetbrains.kotlin.psi.KtWhenExpression
* Keeping braces consistent will improve readability and avoid possible errors.
*
* Single-line `when` statement is:
* a `when` where each of the entries are single-line (has no line breaks `\n`).
* a `when` where each of the branches are single-line (has no line breaks `\n`).
*
* Multi-line `when` statement is:
* a `when` where at least one of the entries is multi-line (has a break line `\n`)
Expand Down

0 comments on commit 2e41d56

Please sign in to comment.