Skip to content

Commit 9d27899

Browse files
committed
LinkChecker: Remove unnecessary parentheses
1 parent 7f399cd commit 9d27899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/name/valery1707/problem/LinkChecker.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class LinkChecker(private val root: Path) {
3131
}
3232
.flatMap { pathWithText ->
3333
pathWithText.second.findUri()
34-
.map { (pathWithText.first to it.first) to it.second }
34+
.map { pathWithText.first to it.first to it.second }
3535
}
3636
.take(20)// todo Remove limit
3737
.map {
@@ -88,7 +88,7 @@ class LinkChecker(private val root: Path) {
8888
.findAll(this)
8989
.filter { it.value.startsWith("http") }
9090
.map { uri ->
91-
(uri.position(this)) to (uri.value.trimEnd('.').toURI())
91+
uri.position(this) to uri.value.trimEnd('.').toURI()
9292
}
9393
.filter { it.second != null }
9494
.map { it.first to it.second!! }

0 commit comments

Comments
 (0)