Skip to content

Commit

Permalink
Fix rubocop offences for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtrussler committed Jan 30, 2025
1 parent 3fe6ecb commit 38f9e19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/validators/status_prerequisite_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ def validate_each(record, attribute, value)
def can_be_in_review?(record)
record.has_draft? &&
record.reviewer_id.present? &&
(
record.status_was == "submitted_for_2i" ||
record.status_was == "in_review"
)

%w[submitted_for_2i in_review].include?(record.status_was)
end

def can_be_scheduled?(record)
Expand Down

0 comments on commit 38f9e19

Please sign in to comment.