refactor: code style fix

This commit is contained in:
Rsedp8 2025-05-24 17:01:21 +02:00
parent 69d5a2c51b
commit e81abaa1e4

View file

@ -104,7 +104,8 @@ class ImageFileLoader(
if (file != null && file.exists() && name != null && path != null && bucketName != null) {
val extension = path.substringAfterLast(".", "")
// Check if the extension is one of the allowed types
if (extension.lowercase(Locale.ROOT) !in arrayOf("jpg", "jpeg", "png", "svg", "gif", "tiff", "webp", "xcf")) {
if (extension.lowercase(Locale.ROOT) !in arrayOf("jpg", "jpeg", "png", "svg",
"gif", "tiff", "webp", "xcf")) {
continue
}