Skip to content

Commit 1da089c

Browse files
committed
Fix erreneous #single
1 parent 8ee9aff commit 1da089c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/src/main/java/org/neo4j/driver/internal/InternalResultCursor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public Record first()
201201
public Record single()
202202
{
203203
Record first = first();
204-
if( !iter.hasNext() )
204+
if( iter.hasNext() )
205205
{
206206
throw new NoSuchRecordException( "Expected a result with a single record, but this result contains at least one more. " +
207207
"Ensure your query returns only one record, or use `first` instead of `single` if " +

0 commit comments

Comments
 (0)