Skip to content

Commit

Permalink
check for all true instead of none false.
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Jan 18, 2024
1 parent a4300ee commit 2d3cc27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def save_new_scripts
errors.add(:save, script.errors.full_messages) unless saved_successfully

saved_successfully
end.none? do |saved_successfully|
saved_successfully == false
end.all? do |saved_successfully|
saved_successfully == true
end
end

Expand Down

0 comments on commit 2d3cc27

Please sign in to comment.