Skip to content
Snippets Groups Projects
Commit 946b834f authored by Sean Busbey's avatar Sean Busbey
Browse files

Merge pull request #555 from...

Merge pull request #555 from DevFactory/staging/return-statements-should-not-occur-in-finally-blocks-fix-2

"return" statements should not occur in "finally" blocks
parents 6aac6ec8 6b439073
No related branches found
No related tags found
No related merge requests found
......@@ -413,14 +413,14 @@ public class S3Client extends DB {
System.err.println("Not possible to write object :"+key);
e.printStackTrace();
return Status.ERROR;
} finally {
return Status.OK;
}
} catch (Exception e) {
System.err.println("Error in the creation of the stream :"+e.toString());
e.printStackTrace();
return Status.ERROR;
}
return Status.OK;
}
/**
......@@ -464,9 +464,9 @@ public class S3Client extends DB {
System.err.println("Not possible to get the object "+key);
e.printStackTrace();
return Status.ERROR;
} finally {
return Status.OK;
}
return Status.OK;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment