Skip to content

Commit

Permalink
Code climate fix (#22377)
Browse files Browse the repository at this point in the history
* Code climate fix

* Rubocop fix

---------

Co-authored-by: Christopher Aceves <christopher.aceves@va.gov>
Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>
  • Loading branch information
3 people authored and Rnmarshall93 committed Aug 21, 2024
1 parent 692beec commit fdf7b4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/models/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,9 @@ def verify_user_can_update!(user)
end

def can_be_received_by?(team)
return false if assigned_to == team
return false if assigned_to.is_a?(User) && parent && parent.assigned_to == team
return false if assigned_to?(team)

false if parent_assigned_to?(team)
end

# rubocop:disable Metrics/AbcSize
Expand Down

0 comments on commit fdf7b4d

Please sign in to comment.