fix(api): avoid unnecessary build warning

This commit is contained in:
Harsh Shandilya 2023-03-08 01:47:41 +05:30
parent 0ae48dee33
commit 9ab8a3e149
No known key found for this signature in database

View file

@ -1,5 +1,5 @@
/* /*
* Copyright © 2021-2022 Harsh Shandilya. * Copyright © 2021-2023 Harsh Shandilya.
* Use of this source code is governed by an MIT-style * Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at * license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT. * https://opensource.org/licenses/MIT.
@ -11,7 +11,7 @@ import java.io.File
object TestUtils { object TestUtils {
fun getJson(path: String): String { fun getJson(path: String): String {
// Load the JSON response // Load the JSON response
val uri = javaClass.classLoader.getResource(path) val uri = javaClass.classLoader!!.getResource(path)
val file = File(uri.path) val file = File(uri.path)
return String(file.readBytes()) return String(file.readBytes())
} }