Skip to content

Commit 80d0756

Browse files
author
Ryan
committed
changed if statement to improve readability.
1 parent a2263cd commit 80d0756

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/com/mongodb/gridfs/GridFSInputFile.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,8 @@ private void _finishData() {
308308
_length = _totalBytes;
309309
_savedChunks = true;
310310
try {
311-
if (null != _in && _closeStreamOnPersist) {
312-
_in.close();
313-
}
311+
if ( _in != null && _closeStreamOnPersist )
312+
_in.close();
314313
} catch (IOException e) {
315314
//ignore
316315
}

0 commit comments

Comments
 (0)