fix: Ambiguity

This commit is contained in:
Ahmad Ansori Palembani 2024-05-30 07:24:53 +07:00
parent fa52b11254
commit f880d921a5
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -178,7 +178,7 @@ class CustomMangaManager(val context: Context) {
author: String? = null,
artist: String? = null,
description: String? = null,
genre: Array<String>? = null,
genre: Array<String> = arrayOf(),
status: Int? = null,
): ComicInfoYokai {
return create(
@ -187,7 +187,7 @@ class CustomMangaManager(val context: Context) {
author = author,
artist = artist,
description = description,
genre = genre?.joinToString(", "),
genre = genre.takeIf { it.isNotEmpty() }?.joinToString(", "),
status = status,
)
}