Skip to content

Commit

Permalink
Fix quality gates: issues reported by Sonar (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
ADarko22 authored May 8, 2023
1 parent e05d52a commit 6ea5707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,5 +570,5 @@ fun SensorContext.hasCacheEnabled(): Boolean {
}

fun KtWhenExpression.isExhaustive(context: KotlinFileContext): Boolean {
return entries.any { it.isElse } || context.bindingContext.get(BindingContext.EXHAUSTIVE_WHEN, this) == true
return entries.any { it.isElse } || context.bindingContext[BindingContext.EXHAUSTIVE_WHEN, this] == true
}
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private class AndroidLintHelp(androidLintHelpPath: Path) {
}
var header = lines[pos].substring(lines[pos].indexOf(':') + 2)
pos++
if (name == "Summary" && pos < lines.size && !lines[pos].isEmpty()) {
if (name == "Summary" && pos < lines.size && lines[pos].isNotEmpty()) {
header += " " + lines[pos]
pos++
}
Expand Down

0 comments on commit 6ea5707

Please sign in to comment.