Update no-ee-check with rubocop recommendation.

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2018-05-21 15:12:18 +00:00
parent 470f55351b
commit fba580e37f
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -1,8 +1,7 @@
#!/usr/bin/env ruby
ee_path = File.join(File.expand_path(File.dirname(__FILE__)), '../ee')
result = Dir.exist?(ee_path)
ee_path = File.join(File.expand_path(__dir__), '../ee')
if result
if Dir.exist?(ee_path)
puts 'The repository contains /ee directory. There should be no /ee directory in CE repo.'
exit 1
end