Skip to content

Commit

Permalink
Gradle: Prefer method call over instance variable access in file fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
jurre authored Oct 7, 2021
1 parent 024d605 commit cf754ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/lib/dependabot/gradle/file_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def dependency_script_plugins
# rubocop:enable Metrics/PerceivedComplexity

def check_required_files_present
return if buildfile || (@subproject_buildfiles && !@subproject_buildfiles.empty?)
return if buildfile || (subproject_buildfiles && !subproject_buildfiles.empty?)

path = Pathname.new(File.join(directory, "build.gradle")).cleanpath.to_path
path += "(.kts)?"
Expand Down

0 comments on commit cf754ff

Please sign in to comment.