mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
optimize - do not call sortByDeprecated if size < 2
This commit is contained in:
@@ -514,7 +514,7 @@ enum class StateLoadPolicy {
|
||||
}
|
||||
|
||||
internal fun Array<Storage>.sortByDeprecated(): Array<out Storage> {
|
||||
if (isEmpty()) {
|
||||
if (size < 2) {
|
||||
return this
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user