Skip to content

Commit

Permalink
Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Genato committed Dec 27, 2016
1 parent 7656ff0 commit eca6e3b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main/java/hr/vsite/mentor/lecture/LectureManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,11 @@ public Lecture delete(Lecture lecture){
throw new RuntimeException("Delete failed: " + e.getMessage());
}
finally{
if(statement != null)
try {
statement.close();
} catch (SQLException e) {
throw new RuntimeException("Delete failed: " + e.getMessage());
}
try {
statement.close();
} catch (SQLException e) {
throw new RuntimeException(e.getMessage());
}
}

return lecture;
Expand Down

0 comments on commit eca6e3b

Please sign in to comment.