From 4c9d3cc4db55c378f88350d8734752d49da1b713 Mon Sep 17 00:00:00 2001 From: Valentyn Kolesnikov Date: Mon, 30 Dec 2024 00:25:24 +0200 Subject: [PATCH] Fixed sonar warning --- src/test/java/com/github/underscore/UnderscoreTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/com/github/underscore/UnderscoreTest.java b/src/test/java/com/github/underscore/UnderscoreTest.java index 2d8b32a5..09952755 100644 --- a/src/test/java/com/github/underscore/UnderscoreTest.java +++ b/src/test/java/com/github/underscore/UnderscoreTest.java @@ -180,8 +180,7 @@ void pop() { void shift() { assertEquals("a", Underscore.shift(asList("a", "b", "c")).getKey()); assertEquals("a", new Underscore(asList("a", "b", "c")).shift().getKey().toString()); - assertEquals( - "a", Underscore.chain(asList("a", "b", "c")).shift().item().getKey().toString()); + assertEquals("a", Underscore.chain(asList("a", "b", "c")).shift().item().getKey()); } /*