Skip to content

Commit

Permalink
Remove redundant else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurizio Turatti committed Aug 8, 2018
1 parent ff73423 commit b71c0e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/restheart/db/GridFsDAO.java
Expand Up @@ -148,7 +148,8 @@ public OperationResult deleteFile(

if (file == null) {
return new OperationResult(HttpStatus.SC_NOT_FOUND);
} else if (checkEtag) {
}
if (checkEtag) {
Document metadata = file.getMetadata();
if (metadata != null) {
Object oldEtag = metadata.get("_etag");
Expand Down

0 comments on commit b71c0e8

Please sign in to comment.