From 71720a79711153537f299ff102af69fa61cfc129 Mon Sep 17 00:00:00 2001 From: Bastian Doetsch Date: Wed, 2 Oct 2024 12:43:47 +0200 Subject: [PATCH] fix: code smell --- src/test/kotlin/snyk/common/lsp/SnykLanguageClientTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/kotlin/snyk/common/lsp/SnykLanguageClientTest.kt b/src/test/kotlin/snyk/common/lsp/SnykLanguageClientTest.kt index 2d38629a0..5f954992e 100644 --- a/src/test/kotlin/snyk/common/lsp/SnykLanguageClientTest.kt +++ b/src/test/kotlin/snyk/common/lsp/SnykLanguageClientTest.kt @@ -151,8 +151,8 @@ class SnykLanguageClientTest { // Assert the returned list contains parsed ScanIssues assertEquals(2, result.size) - assertEquals("Some Issue", result.get(0).title) - assertEquals("Another Issue", result.get(1).title) + assertEquals("Some Issue", result[0].title) + assertEquals("Another Issue", result[1].title) } private fun createMockDiagnostic(range: Range, message: String): Diagnostic {