From 6e8ff34b3b7055f7987479ebd77b0e1bfbdee3c6 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 9 Dec 2023 22:22:02 +0100 Subject: code cleanup --- src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main') 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() -- cgit