Skip to content

Commit

Permalink
spelling: precision
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Sep 20, 2019
1 parent 870cf63 commit ff493f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/lib/dependabot/pull_request_creator/labeler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def automerge_candidate?
def update_type
return unless dependencies.any?(&:previous_version)

precison = dependencies.map do |dep|
precision = dependencies.map do |dep|
new_version_parts = version(dep).split(".")
old_version_parts = previous_version(dep)&.split(".") || []
all_parts = new_version_parts.first(3) + old_version_parts.first(3)
Expand All @@ -105,7 +105,7 @@ def update_type
3
end.min

case precison
case precision
when 0 then "non-semver"
when 1 then "major"
when 2 then "minor"
Expand Down

0 comments on commit ff493f1

Please sign in to comment.