Skip to content

Commit

Permalink
add .compact to Script::all to fix #2770
Browse files Browse the repository at this point in the history
  • Loading branch information
Oglopf committed May 17, 2023
1 parent 954ec1b commit cf4139c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/app/models/script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def find(id, project_dir)
def all(project_dir)
Dir.glob("#{scripts_dir(project_dir)}/*.yml").map do |file|
Script.from_yaml(file, project_dir)
end
end.compact
end

def from_yaml(file, project_dir)
Expand Down

0 comments on commit cf4139c

Please sign in to comment.