Skip to content

Commit

Permalink
Help me with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bkostanetskyi committed Aug 25, 2024
1 parent a63d4bc commit 23c1024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mate/academy/dao/MovieDaoImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public Movie add(Movie movie) {
session.persist(movie);
transaction.commit();
} catch (DataProcessingException e) {
if(transaction != null) {
if (transaction != null) {
transaction.rollback();
}
} finally {
Expand Down

0 comments on commit 23c1024

Please sign in to comment.