Skip to content

Commit 7ab36ba

Browse files
committed
Fixed sonar
1 parent aecb1d3 commit 7ab36ba

File tree

1 file changed

+2
-2
lines changed
  • src/main/kotlin/g3601_3700/s3625_count_number_of_trapezoids_ii

1 file changed

+2
-2
lines changed

src/main/kotlin/g3601_3700/s3625_count_number_of_trapezoids_ii/Solution.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ class Solution {
6363
val lineId = nx.toLong() * x1 + ny.toLong() * y1
6464
val slopeKey = Slope(dx, dy)
6565
slopeLines
66-
.computeIfAbsent(slopeKey) { k: Slope -> HashMap() }
66+
.computeIfAbsent(slopeKey) { _: Slope -> HashMap() }
6767
.merge(lineId, 1) { a: Int, b: Int -> Integer.sum(a, b) }
6868
val mx = x1 + x2
6969
val my = y1 + y2
7070
val mid = Pair(mx, my)
7171
midpointSlopes
72-
.computeIfAbsent(mid) { k: Pair -> HashMap() }
72+
.computeIfAbsent(mid) { _: Pair -> HashMap() }
7373
.merge(slopeKey, 1) { a: Int, b: Int -> Integer.sum(a, b) }
7474
}
7575
}

0 commit comments

Comments
 (0)