Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use "A unless B" insted of "B or A".

"B" is not side effect now.
  • Loading branch information...
commit ec6036b38e371b9c01bf798c13f855f82b3a9cfe 1 parent f9bdbd3
Kenichi Kamiya kachick authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ole/storage/meta_data.rb
2  lib/ole/storage/meta_data.rb
View
@@ -137,7 +137,7 @@ def to_h
def method_missing name, *args, &block
return super unless args.empty?
- Types::PropertySet::PROPERTY_MAP[name.to_s] or return super
+ return super unless Types::PropertySet::PROPERTY_MAP[name.to_s]
self[name]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.