From e67620260c3e75a9f73e340faee35f1538e09ddd Mon Sep 17 00:00:00 2001 From: North Date: Sun, 10 Mar 2013 11:05:30 +0200 Subject: [PATCH] [minor] removed redundant finally block in CardRepository --- Mage/src/mage/cards/repository/CardRepository.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Mage/src/mage/cards/repository/CardRepository.java b/Mage/src/mage/cards/repository/CardRepository.java index 6870760d9a..1a4dea2d35 100644 --- a/Mage/src/mage/cards/repository/CardRepository.java +++ b/Mage/src/mage/cards/repository/CardRepository.java @@ -132,9 +132,8 @@ public enum CardRepository { setCodes.add(card.getSetCode()); } } catch (SQLException ex) { - } finally { - return setCodes; } + return setCodes; } public Set getNames() { @@ -147,9 +146,8 @@ public enum CardRepository { names.add(card.getName()); } } catch (SQLException ex) { - } finally { - return names; } + return names; } public Set getNonLandNames() { @@ -163,9 +161,8 @@ public enum CardRepository { names.add(card.getName()); } } catch (SQLException ex) { - } finally { - return names; } + return names; } public Set getCreatureTypes() { @@ -179,9 +176,8 @@ public enum CardRepository { subtypes.addAll(card.getSubTypes()); } } catch (SQLException ex) { - } finally { - return subtypes; } + return subtypes; } public CardInfo findCard(String setCode, int cardNumber) {