From 9ab8a3e1497916852abeee58fbc1f03d76e7c2e9 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 8 Mar 2023 01:47:41 +0530 Subject: [PATCH] fix(api): avoid unnecessary build warning --- api/src/test/kotlin/dev/msfjarvis/claw/util/TestUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/test/kotlin/dev/msfjarvis/claw/util/TestUtils.kt b/api/src/test/kotlin/dev/msfjarvis/claw/util/TestUtils.kt index 5d0b3745..0e23e063 100644 --- a/api/src/test/kotlin/dev/msfjarvis/claw/util/TestUtils.kt +++ b/api/src/test/kotlin/dev/msfjarvis/claw/util/TestUtils.kt @@ -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 * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. @@ -11,7 +11,7 @@ import java.io.File object TestUtils { fun getJson(path: String): String { // Load the JSON response - val uri = javaClass.classLoader.getResource(path) + val uri = javaClass.classLoader!!.getResource(path) val file = File(uri.path) return String(file.readBytes()) }