Skip to content

Commit 0bf7740

Browse files
committed
Remove unneeded routing context value check
Commit removes duplicated `value.isEmpty()` check.
1 parent 3c61c87 commit 0bf7740

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

driver/src/main/java/org/neo4j/driver/internal/cluster/RoutingContext.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,8 @@ private static Map<String,String> parseParameters( URI uri )
7979

8080
String key = trimAndVerify( keyValue[0], "key", uri );
8181
String value = trimAndVerify( keyValue[1], "value", uri );
82-
if ( value.isEmpty() )
83-
{
84-
throw new IllegalArgumentException( "Illegal empty value in URI query '" + uri + "'" );
85-
}
86-
String previousValue = parameters.put( key, value );
8782

83+
String previousValue = parameters.put( key, value );
8884
if ( previousValue != null )
8985
{
9086
throw new IllegalArgumentException(

0 commit comments

Comments
 (0)