tasks/rubocop.rake in nanoc-4.0.0b4 vs tasks/rubocop.rake in nanoc-4.0.0rc1

- old
+ new

@@ -1,10 +1,6 @@ -begin - require 'rubocop/rake_task' +require 'rubocop/rake_task' - RuboCop::RakeTask.new(:rubocop) do |task| - task.options = %w( --display-cop-names --format simple ) - task.patterns = ['lib/**/*.rb'] - end -rescue LoadError - warn 'Could not load RuboCop. RuboCop rake tasks will be unavailable.' +RuboCop::RakeTask.new(:rubocop) do |task| + task.options = %w( --display-cop-names --format simple ) + task.patterns = ['lib/**/*.rb'] end