mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Enable more detekt rules and remove unused extension.
This commit is contained in:
committed by
Benoit Marty
parent
1354ec76c9
commit
f7536a5450
-4
@@ -72,7 +72,3 @@ fun String.ellipsize(length: Int): String {
|
||||
|
||||
return "${this.take(length)}…"
|
||||
}
|
||||
|
||||
inline fun <reified R> Any?.takeAs(): R? {
|
||||
return takeIf { it is R } as R?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user