Commit b215d05c authored by Heath Borders's avatar Heath Borders

Fixed some linting errors

parent ad94f543
......@@ -57,13 +57,13 @@ module Pod
dirs, files = dirs_and_files.partition { |path| File.directory?(path) }
root_length = root.cleanpath.to_s.length + File::SEPARATOR.length
relative_sorted = lambda { |paths|
relative_paths = paths.lazy.map { |path|
relative_sorted = lambda do |paths|
relative_paths = paths.lazy.map do |path|
path_string = path.to_s
path_string.slice(root_length, path_string.length - root_length)
}
end
relative_paths.sort_by(&:upcase)
}
end
@dirs = relative_sorted.call(dirs)
@files = relative_sorted.call(files)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment