Skip to content

Commit 949a55a

Browse files
committed
添加搜索仓库和搜索用户排序功能
1 parent d6c98fc commit 949a55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/fmt/github/ext/BooleanExt.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sealed class BooleanExt<out T>//巧用协变与密封类(增强版枚举)
66

77
class Success<T>(val data: T) : BooleanExt<T>()
88

9-
object OtherWise : BooleanExt<Nothing>()
9+
object OtherWise : BooleanExt<Nothing>()//Nothing是任何类的子类
1010

1111
inline fun <T> Boolean.yes(block: () -> T): BooleanExt<T> =//inline提升性能
1212
when {

0 commit comments

Comments
 (0)