diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-03-02 14:12:25 +0200 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2019-03-02 14:12:25 +0200 |
commit | ac24bad339e19f576592d98178ce0ae0a1659605 (patch) | |
tree | de8aff9f967d89a67f3ac0daeab269056696b07a /Rakefile | |
parent | 4450fa75f0e9f613b5eee01687f3642a962a8525 (diff) | |
download | pry-ac24bad339e19f576592d98178ce0ae0a1659605.tar.gz |
rubocop: fix offences of the Style/RescueModifier cop
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -85,7 +85,11 @@ task rm_pkgs: :rmgems desc "reinstall gem" task reinstall: :gems do - sh "gem uninstall pry" rescue nil + begin + sh "gem uninstall pry" + rescue StandardError + nil + end sh "gem install #{File.dirname(__FILE__)}/pkg/pry-#{Pry::VERSION}.gem" end |