Skip to content

Commit

Permalink
fix sonar issue kotlin:S1066
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuth committed Sep 9, 2024
1 parent 4a4fb58 commit d62903f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/de/gmuth/ipp/client/IppOperationException.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ open class IppOperationException(
append("${request.operation} failed")
with(response) {
append(": '$status'")
if (containsGroup(Operation)) {
if (operationGroup.containsKey("status-message")) append(", $statusMessage")
if (containsGroup(Operation) && operationGroup.containsKey("status-message")) {
append(", $statusMessage")
}
}
toString()
Expand Down

0 comments on commit d62903f

Please sign in to comment.