Skip to content

Commit 78e9fba

Browse files
committed
Cleanups
1 parent dacfba8 commit 78e9fba

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/RelocatorRemapper.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ internal class RelocatorRemapper(
2929

3030
fun mapPath(path: String): String {
3131
val dotIndex = path.indexOf('.')
32-
return if (dotIndex == -1) {
33-
path // Return the original path if no period is found
34-
} else {
35-
map(path.substring(0, dotIndex))
36-
}
32+
return if (dotIndex == -1) path else map(path.take(dotIndex))
3733
}
3834

3935
private fun mapName(name: String, mapLiterals: Boolean = false): String {

0 commit comments

Comments
 (0)