Skip to content

Commit 03ed74a

Browse files
randhircsCopilot
andauthored
Update updater/lib/dependabot/file_fetcher_command.rb
Co-authored-by: Copilot <[email protected]>
1 parent f6fb45d commit 03ed74a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

updater/lib/dependabot/file_fetcher_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def create_file_fetcher(directory: nil)
104104
args = {
105105
source: job.source.clone.tap { |s| s.directory = directory_to_use },
106106
credentials: credentials,
107-
options: job.experiments.transform_keys(&:to_s).transform_values(&:to_s)
107+
options: job.experiments.reject { |k, v| k.nil? || v.nil? }.transform_keys(&:to_s).transform_values(&:to_s)
108108
}
109109
args[:repo_contents_path] = Environment.repo_contents_path if job.clone? || already_cloned?
110110
Dependabot::FileFetchers.for_package_manager(job.package_manager).new(**args)

0 commit comments

Comments
 (0)