Verified Commit 26dca417 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

fix rubocop complaining about guard clause

Style/GuardClause: Use a guard clause instead of wrapping the code inside a conditional expression.
parent eae50efd
......@@ -328,7 +328,8 @@ class Volunteer < ApplicationRecord
def record_acceptance_changed
self["#{acceptance_change_to_be_saved[1]}_at".to_sym] = if will_save_change_to_acceptance?
return unless will_save_change_to_acceptance?
self["#{acceptance_change_to_be_saved[1]}_at".to_sym] =
def user_deleted?
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment