Commit 955bc272 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[RuboCop] Redundant return detected. Do not use parentheses for method calls with no arguments.

parent 55b2190b
......@@ -540,7 +540,7 @@ module Pod
def _xcodebuild(command)
UI.puts command if config.verbose
output = `#{command}`
return output, $?
[output, $?]
end
#-------------------------------------------------------------------------#
......
......@@ -364,7 +364,7 @@ module Pod
validator.stubs(:check_file_patterns)
validator.stubs(:validate_url)
validator.stubs(:`).returns('Output')
status = mock()
status = mock
status.stubs(:success?).returns(false)
validator.stubs(:_xcodebuild).returns(['Output', status])
validator.validate
......
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