mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
[minor] removed redundant finally block in CardRepository
This commit is contained in:
parent
01eee3995c
commit
e67620260c
1 changed files with 4 additions and 8 deletions
|
|
@ -132,9 +132,8 @@ public enum CardRepository {
|
|||
setCodes.add(card.getSetCode());
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
} finally {
|
||||
return setCodes;
|
||||
}
|
||||
return setCodes;
|
||||
}
|
||||
|
||||
public Set<String> getNames() {
|
||||
|
|
@ -147,9 +146,8 @@ public enum CardRepository {
|
|||
names.add(card.getName());
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
} finally {
|
||||
return names;
|
||||
}
|
||||
return names;
|
||||
}
|
||||
|
||||
public Set<String> getNonLandNames() {
|
||||
|
|
@ -163,9 +161,8 @@ public enum CardRepository {
|
|||
names.add(card.getName());
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
} finally {
|
||||
return names;
|
||||
}
|
||||
return names;
|
||||
}
|
||||
|
||||
public Set<String> 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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue