Skip to content

Commit

Permalink
Use dig instead of directly accessing Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishnha committed Jun 20, 2024
1 parent 0a3e581 commit 39600d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def merge_file_to_batch(file, batch)

batch[file.path] = {
file: file,
updated_dependencies: batch[file.path][:updated_dependencies] || [],
updated_dependencies: batch.dig(file.path, :updated_dependencies) || [],
changed: true,
changes: change_count + 1
}
Expand Down

0 comments on commit 39600d2

Please sign in to comment.