Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
tnicolas1 committed Nov 14, 2024
1 parent 77c3c8e commit 81e542d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/student/mappers/sygne.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def map_schooling!(classe, student, entry)

if schooling.open?
student.close_current_schooling! if student.current_schooling != schooling
else
schooling.reopen! if attributes[:end_date].nil?
elsif attributes[:end_date].nil?
schooling.reopen!
end

schooling.save!
Expand Down

0 comments on commit 81e542d

Please sign in to comment.