Skip to content

Commit

Permalink
remove trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nirev committed Oct 8, 2021
1 parent b384d38 commit 32ee84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hex/lib/dependabot/hex/file_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ def subapp_mixfiles

def support_files
mixfiles = [mixfile] + subapp_mixfiles

mixfiles.flat_map do |mixfile|
mixfile_dir = mixfile.path.sub("/mix.exs", "").delete_prefix("/")

mixfile.content.gsub(/__DIR__/, "\"#{mixfile_dir}\"").scan(SUPPORT_FILE).map do |support_file_args|
path = Pathname.new(File.join(*support_file_args.compact.reverse)).
cleanpath.to_path
fetch_file_from_host(path).tap { |f| f.support_file = true }
end
end
end
end
end
Expand Down

0 comments on commit 32ee84a

Please sign in to comment.