set/all/editor.rb in card-mod-edit-0.11.0 vs set/all/editor.rb in card-mod-edit-0.11.1
- old
+ new
@@ -22,12 +22,11 @@
end
end
# move somewhere more accessible?
def with_card mark
- return nil unless (card = Card[mark])
-
- yield card
+ card = Card[mark]
+ yield card if card
rescue Card::Error::CodenameNotFound
nil
end
view :input, unknown: true do