Skip to content

Commit f64f4bb

Browse files
committed
fix sonar issue
1 parent 7b60c24 commit f64f4bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/de/gmuth/ipp/client/IppPrinter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ open class IppPrinter(
193193
val geoLocation: Pair<Double, Double> // Coordinates
194194
get() = attributes.getValue<URI>("printer-geo-location")
195195
.schemeSpecificPart.split(",")
196-
.run { Pair(get(0).toDouble(), get(1).toDouble()) }
196+
.run { Pair(this[0].toDouble(), this[1].toDouble()) }
197197

198198
val alert: List<String>? // PWG 5100.9
199199
get() = attributes.getValuesOrNull("printer-alert")

0 commit comments

Comments
 (0)