Skip to content

Commit b2c7d8b

Browse files
committed
Fixed an unused assignment warning
1 parent 809a955 commit b2c7d8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/com/mongodb/JavaClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,8 @@ public void testWriteResult(){
768768
DBCollection c = _db.getCollection( "writeresult1" );
769769
c.drop();
770770

771-
WriteResult res = c.insert( new BasicDBObject( "_id" , 1 ) );
772-
res = c.update( new BasicDBObject( "_id" , 1 ) , new BasicDBObject( "$inc" , new BasicDBObject( "x" , 1 ) ) );
771+
c.insert( new BasicDBObject( "_id" , 1 ) );
772+
WriteResult res = c.update( new BasicDBObject( "_id" , 1 ) , new BasicDBObject( "$inc" , new BasicDBObject( "x" , 1 ) ) );
773773
assertEquals( 1 , res.getN() );
774774
assertTrue( res.isLazy() );
775775

0 commit comments

Comments
 (0)