Skip to content

Commit

Permalink
Use string interpolation for Filter.toString
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed Aug 16, 2024
1 parent baf842a commit d968e40
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions kable-core/src/commonMain/kotlin/Filter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,8 @@ public sealed class Filter {
if (dataMask != null) requireDataAndMaskHaveSameLength(data, dataMask)
}

override fun toString(): String = buildString {
append("ManufacturerData(id=")
append(id)
append(", data=")
append(data.toHexString())
append(", dataMask=")
append(dataMask?.toHexString())
append(')')
}
override fun toString(): String =
"ManufacturerData(id=$id, data=${data.toHexString()}, dataMask=${dataMask?.toHexString()})"
}
}

Expand Down

0 comments on commit d968e40

Please sign in to comment.