diff --git a/src/main/java/mate/academy/dao/MovieDaoImpl.java b/src/main/java/mate/academy/dao/MovieDaoImpl.java index aee6f779..7099d8a2 100644 --- a/src/main/java/mate/academy/dao/MovieDaoImpl.java +++ b/src/main/java/mate/academy/dao/MovieDaoImpl.java @@ -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 {