Skip to content

Commit 71c7dbc

Browse files
committed
clean up
1 parent 6314b40 commit 71c7dbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/kotlin/io/openapiprocessor/intellij/ModuleFinder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ModuleFinder(private val project: Project) {
3636
val matches = matchPaths(Path.of(source), sourceRoots)
3737

3838
if (matches.isNotEmpty()) {
39-
results.put(moduleEntity, matches)
39+
results[moduleEntity] = matches
4040
}
4141
}
4242

@@ -59,7 +59,7 @@ class ModuleFinder(private val project: Project) {
5959
val min = min(sourceItems.size, canSplit.size)
6060
val matching = mutableListOf<String>()
6161

62-
for (i in 0.. min - 1) {
62+
for (i in 0..< min) {
6363
if (sourceItems[i] != canSplit[i]) {
6464
break
6565
}

0 commit comments

Comments
 (0)