Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Harrison <philip@mailharrison.com>
  • Loading branch information
Pete Wagner and feelepxyz committed Sep 15, 2020
1 parent a3965c6 commit 6fa8e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/lib/dependabot/terraform/file_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def version_from_ref(ref)
ref.match(version_regex).named_captures.fetch("version")
end

# rubocop:disable Metrics/PerceivedComplexity:
# rubocop:disable Metrics/PerceivedComplexity
# See https://www.terraform.io/docs/modules/sources.html#http-urls for
# details of how Terraform handle HTTP(S) sources for modules
def get_proxied_source(raw_source)
Expand All @@ -190,7 +190,7 @@ def get_proxied_source(raw_source)
tag.attributes&.fetch("name", nil)&.value == "terraform-get"
end&.attributes&.fetch("content", nil)&.value
end
# rubocop:enable Metrics/PerceivedComplexity:
# rubocop:enable Metrics/PerceivedComplexity

# rubocop:disable Metrics/PerceivedComplexity
def source_type(source_string)
Expand Down

0 comments on commit 6fa8e46

Please sign in to comment.