Commit d484bcf8 authored by Kyle Fuller's avatar Kyle Fuller

[Rubocop] Silence some warnings

parent f19d8483
...@@ -232,7 +232,7 @@ module Pod ...@@ -232,7 +232,7 @@ module Pod
versions = version_information(dir) versions = version_information(dir)
unless repo_compatible?(dir) unless repo_compatible?(dir)
min, max = versions['min'], versions['max'] min, max = versions['min'], versions['max']
version_msg = ( min == max) ? min : "#{min} - #{max}" version_msg = (min == max) ? min : "#{min} - #{max}"
raise Informative, "The `#{dir.basename}` repo requires " \ raise Informative, "The `#{dir.basename}` repo requires " \
"CocoaPods #{version_msg} (currently using #{Pod::VERSION})\n".red + "CocoaPods #{version_msg} (currently using #{Pod::VERSION})\n".red +
'Update CocoaPods, or checkout the appropriate tag in the repo.' 'Update CocoaPods, or checkout the appropriate tag in the repo.'
......
...@@ -357,7 +357,7 @@ module Pod ...@@ -357,7 +357,7 @@ module Pod
end end
if consumer.spec.root? if consumer.spec.root?
unless file_accessor.license || spec.license && ( spec.license[:type] == 'Public Domain' || spec.license[:text]) unless file_accessor.license || spec.license && (spec.license[:type] == 'Public Domain' || spec.license[:text])
warning 'Unable to find a license file' warning 'Unable to find a license file'
end end
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