Skip to content

Commit 4e13694

Browse files
author
Ryan
committed
simplified return statement (and null check)
1 parent 29ef407 commit 4e13694

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/com/mongodb/ReplicaSetStatus.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,7 @@ static ServerAddress getASecondary( final String pTagKey,
208208

209209
}
210210

211-
if ( best == null )
212-
return null;
213-
214-
return best._addr;
211+
return ( best != null ) ? best._addr : null;
215212
}
216213

217214
boolean hasServerUp() {

0 commit comments

Comments
 (0)