summaryrefslogtreecommitdiff
path: root/bin/rubocop
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-12 22:54:28 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-15 15:29:32 +0200
commitb492f83b95fb87f2b4e87c54b6e84f909e7e99a0 (patch)
tree9e1fe06ccf23b96391c98973b16e2f86a8bdf333 /bin/rubocop
parent0dfa6a4234faa9de0337262037a4c7139380f4ee (diff)
downloadbundler-b492f83b95fb87f2b4e87c54b6e84f909e7e99a0.tar.gz
Refactor activation errors
Diffstat (limited to 'bin/rubocop')
-rwxr-xr-xbin/rubocop6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/rubocop b/bin/rubocop
index f700d073ca..818aaf7a9d 100755
--- a/bin/rubocop
+++ b/bin/rubocop
@@ -5,8 +5,4 @@ load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
require_relative "../spec/support/rubygems_ext"
-begin
- Spec::Rubygems.gem_load("rubocop", "rubocop")
-rescue Gem::LoadError => e
- warn "We couln't activate rubocop (#{e.requirement}). Run `gem install rubocop:'#{e.requirement}'`"
-end
+Spec::Rubygems.gem_load("rubocop", "rubocop")