Fix ktlint issues

This commit is contained in:
Benoit Marty 2024-01-10 19:33:39 +01:00
parent 140a11cf77
commit a831f05f6e
100 changed files with 66 additions and 158 deletions

View file

@ -136,7 +136,13 @@ fun AttachmentThumbnail(
@Parcelize
enum class AttachmentThumbnailType : Parcelable {
Image, Video, File, Audio, Location, Voice, Poll
Image,
Video,
File,
Audio,
Location,
Voice,
Poll,
}
@Parcelize

View file

@ -41,7 +41,6 @@ internal class CoilMediaFetcher(
private val mediaData: MediaRequestData?,
private val options: Options
) : Fetcher {
override suspend fun fetch(): FetchResult? {
if (mediaData?.source == null) return null
return when (mediaData.kind) {
@ -126,9 +125,7 @@ internal class CoilMediaFetcher(
class AvatarFactory(
private val context: Context,
private val client: MatrixClient
) :
Fetcher.Factory<AvatarData> {
) : Fetcher.Factory<AvatarData> {
override fun create(
data: AvatarData,
options: Options,

View file

@ -33,7 +33,6 @@ data class MediaRequestData(
val source: MediaSource?,
val kind: Kind
) {
sealed interface Kind {
data object Content : Kind
data class File(val body: String?, val mimeType: String) : Kind

View file

@ -26,7 +26,6 @@ import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
class ToHtmlDocumentTest {
@Test
fun `toHtmlDocument - returns null if format is not HTML`() {
val body = FormattedBody(

View file

@ -28,7 +28,6 @@ import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
class ToPlainTextTest {
@Test
fun `Document toPlainText - returns a plain text version of the document`() {
val document = Jsoup.parse(