Skip to content

Commit a0b9fdb

Browse files
committed
#45 Revert abbreviation variable extraction
1 parent e52bbfc commit a0b9fdb

File tree

1 file changed

+1
-3
lines changed
  • backend/foundation/src/main/kotlin/ru/ifmo/se/dating/text

1 file changed

+1
-3
lines changed

backend/foundation/src/main/kotlin/ru/ifmo/se/dating/text/Abbreviate.kt

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@ package ru.ifmo.se.dating.text
22

33
import org.apache.commons.lang3.StringUtils
44

5-
private const val DEFAULT_ABBREVIATION_LENGTH = 16
6-
7-
fun String.abbreviated(maxLength: Int = DEFAULT_ABBREVIATION_LENGTH): String =
5+
fun String.abbreviated(maxLength: Int = 16): String =
86
StringUtils.abbreviate(this, maxLength)

0 commit comments

Comments
 (0)