Skip to content

Commit

Permalink
Correct Style/RedundantReturn lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Aug 11, 2023
1 parent 7e1ad80 commit ea0c7e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def active?
def joined(user)
return false if users.empty?
return false unless users.include? user
return true if users.include? user

true if users.include? user
end

def join!(user)
Expand Down

0 comments on commit ea0c7e6

Please sign in to comment.