Skip to content

Commit

Permalink
When dependency-type is not set for allow conditions, allow all types (
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Jul 18, 2023
1 parent ddbe54b commit 5a21fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion updater/bin/update-script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
def allow_conditions_for(dep)
# Find where the name matches then get the type e.g. production, direct, etc
found = $options[:allow_conditions].find { |al| dep.name.match?(al["dependency-name"]) }
found ? found["dependency-type"] : nil
found ? found["dependency-type"] : "all" # when not specified, allow all types
end

#################################################################
Expand Down

0 comments on commit 5a21fcc

Please sign in to comment.