Remove EMPTY_GALLERY_TAG_GROUP_ARRAY
There is no reason to keep it emptyList() always return a singleton
This commit is contained in:
1 parent
c0a610a02b
commit
2337dda4eb
1 file changed
+2
-3
@@ -76,7 +76,6 @@ object GalleryDetailParser {
|
||||
private val PATTERN_NEWER_DATE = Regex(", added (.+?)<br />")
|
||||
private val PATTERN_FAVORITE_SLOT =
|
||||
Regex("/fav.png\\); background-position:0px -(\\d+)px")
|
||||
private val EMPTY_GALLERY_TAG_GROUP_ARRAY = emptyList<GalleryTagGroup>()
|
||||
private val EMPTY_GALLERY_COMMENT_ARRAY = GalleryCommentList(emptyList(), false)
|
||||
private val WEB_COMMENT_DATE_FORMAT = DateTimeFormatter
|
||||
.ofPattern("dd MMMM yyyy, HH:mm", Locale.US).withZone(ZoneOffset.UTC)
|
||||
@@ -316,7 +315,7 @@ object GalleryDetailParser {
|
||||
} catch (e: Throwable) {
|
||||
ExceptionUtils.throwIfFatal(e)
|
||||
e.printStackTrace()
|
||||
EMPTY_GALLERY_TAG_GROUP_ARRAY
|
||||
emptyList()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -326,7 +325,7 @@ object GalleryDetailParser {
|
||||
} catch (e: Throwable) {
|
||||
ExceptionUtils.throwIfFatal(e)
|
||||
e.printStackTrace()
|
||||
EMPTY_GALLERY_TAG_GROUP_ARRAY
|
||||
emptyList()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user