aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-09 22:22:02 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-09 22:22:02 +0100
commit6e8ff34b3b7055f7987479ebd77b0e1bfbdee3c6 (patch)
treeefd83a32619b11f6f3aa5030d283681aaac762e7 /src/main
parentbeb9d2367991633a6ba2d5b2b4b5601753e2e998 (diff)
downloadskyhanni-6e8ff34b3b7055f7987479ebd77b0e1bfbdee3c6.tar.gz
skyhanni-6e8ff34b3b7055f7987479ebd77b0e1bfbdee3c6.tar.bz2
skyhanni-6e8ff34b3b7055f7987479ebd77b0e1bfbdee3c6.zip
code cleanup
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
index 5cde8f6f9..daa619982 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
@@ -258,9 +258,7 @@ object StringUtils {
return if (matcher.matches()) matcher else null
}
- fun String.convertToFormatted(): String {
- return this.replace("&&", "§")
- }
+ fun String.convertToFormatted(): String = this.replace("&&", "§")
fun Pattern.matches(string: String) = matcher(string).matches()