Skip to content

Commit

Permalink
Strict type Dependabot::Docker::Requirement::MetadataFinder (#9892)
Browse files Browse the repository at this point in the history
* Strict-type-Dependabot::Docker::Requirement::MetadataFinder.

* Strict-type-Dependabot::Docker::Requirement::MetadataFinder.
  • Loading branch information
raj-meka authored Jun 4, 2024
1 parent dedb39c commit c20c787
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/lib/dependabot/docker/metadata_finder.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# typed: true
# typed: strict
# frozen_string_literal: true

require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "dependabot/shared_helpers"
require "sorbet-runtime"

module Dependabot
module Docker
class MetadataFinder < Dependabot::MetadataFinders::Base
extend T::Sig

private

sig { override.returns(T.nilable(Dependabot::Source)) }
def look_up_source
return if dependency.requirements.empty?

Expand Down

0 comments on commit c20c787

Please sign in to comment.