Browse files

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

"B" is not side effect now.
  • Loading branch information...
1 parent f9bdbd3 commit ec6036b38e371b9c01bf798c13f855f82b3a9cfe @kachick kachick committed Jan 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ole/storage/meta_data.rb
View
2 lib/ole/storage/meta_data.rb
@@ -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

0 comments on commit ec6036b

Please sign in to comment.