fix rubocop warning

This commit is contained in:
Andre Richter 2020-07-13 22:07:01 +02:00
parent 87e74f62cd
commit 829722d9f2
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

View File

@ -247,7 +247,8 @@ class DevTool
def copyright_source_files def copyright_source_files
extensions = ['.S', '.rs', '.rb'] extensions = ['.S', '.rs', '.rb']
files = tracked_files.select do |f| # Note: The selection result is the return value of the function.
tracked_files.select do |f|
next unless File.exist?(f) next unless File.exist?(f)
next if f.include?('build.rs') next if f.include?('build.rs')
@ -255,8 +256,6 @@ class DevTool
f.include?('Dockerfile') || f.include?('Dockerfile') ||
extensions.include?(File.extname(f)) extensions.include?(File.extname(f))
end end
files
end end
end end