Commit 7601a3c2 authored by Luis Ascorbe's avatar Luis Ascorbe Committed by Samuel E. Giddins

Changed the variable @count on pod repo list to @should_count_number_of_repos,…

Changed the variable @count on pod repo list to @should_count_number_of_repos, so it´s clear what it does
parent dc6d67a3
...@@ -200,7 +200,7 @@ module Pod ...@@ -200,7 +200,7 @@ module Pod
end end
def initialize(argv) def initialize(argv)
@count = argv.flag?('count') @should_count_number_of_repos = argv.flag?('count')
super super
end end
...@@ -238,7 +238,7 @@ module Pod ...@@ -238,7 +238,7 @@ module Pod
end end
end end
end end
if @count if @should_count_number_of_repos
number_of_repos = sources.length number_of_repos = sources.length
repo_string = number_of_repos != 1 ? 'repos' : 'repo' repo_string = number_of_repos != 1 ? 'repos' : 'repo'
UI.puts "\n#{number_of_repos} #{repo_string}".green UI.puts "\n#{number_of_repos} #{repo_string}".green
......
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