Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve naming of a method #7197

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions npm_and_yarn/lib/dependabot/npm_and_yarn/file_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def package_json
def package_lock
return @package_lock if defined?(@package_lock)

@package_lock = fetch_file_if_present("package-lock.json") unless ignore_package_lock?
@package_lock = fetch_file_if_present("package-lock.json") unless skip_package_lock?
end

def yarn_lock
Expand Down Expand Up @@ -490,7 +490,7 @@ def parsed_shrinkwrap
{}
end

def ignore_package_lock?
def skip_package_lock?
return false unless npmrc

npmrc.content.match?(/^package-lock\s*=\s*false/)
Expand Down