Skip to content

Commit

Permalink
Use "A unless B" insted of "B or A".
Browse files Browse the repository at this point in the history
"B" is not side effect now.
  • Loading branch information
kachick committed Jan 29, 2013
1 parent f9bdbd3 commit ec6036b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ole/storage/meta_data.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def to_h


def method_missing name, *args, &block def method_missing name, *args, &block
return super unless args.empty? 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] self[name]
end end
end end
Expand Down

0 comments on commit ec6036b

Please sign in to comment.