From 05629e386064999f4d3ffc86932ad59cb0aaeb36 Mon Sep 17 00:00:00 2001 From: atbest Date: Sat, 25 May 2019 19:29:03 -0400 Subject: [PATCH] Update --- app/src/main/java/io/legado/app/utils/MiscExtensions.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/utils/MiscExtensions.kt b/app/src/main/java/io/legado/app/utils/MiscExtensions.kt index 24bf95c9a..1f47d2af9 100644 --- a/app/src/main/java/io/legado/app/utils/MiscExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/MiscExtensions.kt @@ -2,8 +2,8 @@ package io.legado.app.utils import com.jayway.jsonpath.ReadContext -fun ReadContext.readString(path: String) = this.read(path, String::class.java) +fun ReadContext.readString(path: String): String? = this.read(path, String::class.java) -fun ReadContext.readBool(path: String) = this.read(path, Boolean::class.java) +fun ReadContext.readBool(path: String): Boolean? = this.read(path, Boolean::class.java) -fun ReadContext.readInt(path: String) = this.read(path, Int::class.java) \ No newline at end of file +fun ReadContext.readInt(path: String): Int? = this.read(path, Int::class.java) \ No newline at end of file