Commit 0d4ec7a2 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[RuboCop] Fix case indentation in bin/pod

parent 4062218f
...@@ -26,16 +26,17 @@ require 'cocoapods' ...@@ -26,16 +26,17 @@ require 'cocoapods'
if profile_filename = ENV['PROFILE'] if profile_filename = ENV['PROFILE']
require 'ruby-prof' require 'ruby-prof'
reporter = case (profile_extname = File.extname(profile_filename)) reporter =
when '.txt' case (profile_extname = File.extname(profile_filename))
RubyProf::FlatPrinterWithLineNumbers when '.txt'
when '.html' RubyProf::FlatPrinterWithLineNumbers
RubyProf::GraphHtmlPrinter when '.html'
when '.callgrind' RubyProf::GraphHtmlPrinter
RubyProf::CallTreePrinter when '.callgrind'
else RubyProf::CallTreePrinter
raise "Unknown profiler format indicated by extension: #{profile_extname}" else
end raise "Unknown profiler format indicated by extension: #{profile_extname}"
end
File.open(profile_filename, 'w') do |io| File.open(profile_filename, 'w') do |io|
reporter.new(RubyProf.profile { Pod::Command.run(ARGV) }).print(io) reporter.new(RubyProf.profile { Pod::Command.run(ARGV) }).print(io)
end end
......
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