Skip to content

Commit 95865eb

Browse files
committed
Ran lint format
1 parent ad07831 commit 95865eb

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

app/src/main/java/com/OxGames/Pluvia/ui/component/BBCodeText.kt

+10-8
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ enum class BBCode(val pattern: String, val groupCount: Int = 1) {
8080
ordinal + 1 + entries.foldIndexed(
8181
0,
8282
) { index, accum, current ->
83-
if (index < ordinal)
83+
if (index < ordinal) {
8484
accum + current.groupCount - 1
85-
else accum
85+
} else {
86+
accum
87+
}
8688
}
8789

8890
companion object {
@@ -115,8 +117,8 @@ fun BBCodeText(
115117
}
116118

117119
when {
118-
match.groups[BBCode.COLON.groupIndex()] != null
119-
|| match.groups[BBCode.EMOTICON.groupIndex()] != null
120+
match.groups[BBCode.COLON.groupIndex()] != null ||
121+
match.groups[BBCode.EMOTICON.groupIndex()] != null
120122
-> {
121123
val emoticonName = match.groupValues
122124
.getOrNull(1)
@@ -199,8 +201,8 @@ fun BBCodeText(
199201
)
200202
pop()
201203
}
202-
match.groups[BBCode.URL.groupIndex()] != null
203-
&& match.groups[BBCode.URL.groupIndex() + 1] != null
204+
match.groups[BBCode.URL.groupIndex()] != null &&
205+
match.groups[BBCode.URL.groupIndex() + 1] != null
204206
-> {
205207
val url = match.groupValues[BBCode.URL.groupIndex()]
206208
val linkText = match.groupValues[BBCode.URL.groupIndex() + 1].trim()
@@ -241,8 +243,8 @@ fun BBCodeText(
241243
block = { append(match.groupValues[BBCode.CODE.groupIndex()]) },
242244
)
243245
}
244-
match.groups[BBCode.QUOTE.groupIndex()] != null
245-
&& match.groups[BBCode.QUOTE.groupIndex() + 1] != null
246+
match.groups[BBCode.QUOTE.groupIndex()] != null &&
247+
match.groups[BBCode.QUOTE.groupIndex() + 1] != null
246248
-> {
247249
withStyle(
248250
style = SpanStyle(

app/src/main/java/com/OxGames/Pluvia/ui/screen/chat/ChatInput.kt

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import androidx.compose.foundation.layout.height
1515
import androidx.compose.foundation.layout.imePadding
1616
import androidx.compose.foundation.layout.padding
1717
import androidx.compose.foundation.layout.size
18-
import androidx.compose.foundation.layout.wrapContentHeight
1918
import androidx.compose.foundation.lazy.grid.GridCells
2019
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
2120
import androidx.compose.foundation.lazy.grid.items

0 commit comments

Comments
 (0)