Skip to content

Commit

Permalink
Return early if method arguments are nil
Browse files Browse the repository at this point in the history
  • Loading branch information
bdragon committed Mar 26, 2024
1 parent 298929c commit 85d18d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions updater/lib/dependabot/updater/group_update_creation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def dependencies_in_existing_pr_for_group(group)
end

def deduce_updated_dependency(dependency, original_dependency)
return nil if dependency.nil? || original_dependency.nil?
return nil if original_dependency.version == dependency.version

Dependabot.logger.info(
Expand Down

0 comments on commit 85d18d5

Please sign in to comment.