mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-15 18:14:02 +00:00
fix rubocop warning
This commit is contained in:
parent
87e74f62cd
commit
829722d9f2
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user