Skip to content

Commit 789e899

Browse files
author
Ryan
committed
simplified getServerAddress method.
1 parent daa7f74 commit 789e899

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/com/mongodb/DBCursor.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,6 @@ public DBCollection getCollection(){
678678
* @return
679679
*/
680680
public ServerAddress getServerAddress() {
681-
if (_it != null && _it instanceof DBApiLayer.Result)
682-
return ((DBApiLayer.Result)_it).getServerAddress();
683-
684681
_check();
685682

686683
if (_it != null && _it instanceof DBApiLayer.Result)

0 commit comments

Comments
 (0)