We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9887fce commit 43e8ea4Copy full SHA for 43e8ea4
src/main/kotlin/spp/protocol/instrument/command/LiveInstrumentCommand.kt
@@ -45,8 +45,14 @@ data class LiveInstrumentCommand(
45
return buildString {
46
append("LiveInstrumentCommand(")
47
append("commandType=").append(commandType)
48
- append(", instruments=").append(instruments.size)
49
- append(", locations=").append(locations.size)
+ if (instruments.size > 1) {
+ append(", instruments=").append(instruments.size)
50
+ } else if (instruments.size == 1) {
51
+ append(", instrument=").append(instruments.first().id)
52
+ }
53
+ if (locations.isNotEmpty()) {
54
+ append(", locations=").append(locations.size)
55
56
append(")")
57
}
58
0 commit comments