diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-03-23 20:00:33 +0200 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2019-03-23 20:03:52 +0200 |
commit | 8d97eb84f19660e324a706e1640d2e1438108bea (patch) | |
tree | cca817002bfd14f1c9c48a3bca7ec7baf7f0a6a0 /lib/pry/slop | |
parent | 1a20b22984216492fb60fb0d6d1dbac6ce92cfc9 (diff) | |
download | pry-8d97eb84f19660e324a706e1640d2e1438108bea.tar.gz |
rubocop: disable Style/DoubleNegation
This cop makes sense to me, however a lot of our code has offences that are not
fixable on the same level. To avoid them we'd need to redesign API of some
classes, which isn't worth it.
Diffstat (limited to 'lib/pry/slop')
-rw-r--r-- | lib/pry/slop/option.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/slop/option.rb b/lib/pry/slop/option.rb index 9f4a1621..fc77ba32 100644 --- a/lib/pry/slop/option.rb +++ b/lib/pry/slop/option.rb @@ -56,7 +56,7 @@ class Pry @config.each_key do |key| predicate = :"#{key}?" unless self.class.method_defined?(predicate) - self.class.__send__(:define_method, predicate) { !!@config[key] } + self.class.__send__(:define_method, predicate) { !@config.key?(key) } end end end |