removed unnecessary null check (calling method already has null check)

master
beholder 2012-06-11 14:00:18 +02:00
parent 445c7a81a0
commit f4f73212d0
1 changed files with 4 additions and 6 deletions

View File

@ -42,12 +42,10 @@ public class MagicPayedCost {
}
void set(final Object choiceResult) {
if (choiceResult!=null) {
if (choiceResult instanceof MagicTarget) {
setTarget((MagicTarget)choiceResult);
} else if (choiceResult instanceof MagicPayManaCostResult) {
setX(((MagicPayManaCostResult)choiceResult).getX());
}
if (choiceResult instanceof MagicTarget) {
setTarget((MagicTarget)choiceResult);
} else if (choiceResult instanceof MagicPayManaCostResult) {
setX(((MagicPayManaCostResult)choiceResult).getX());
}
}
}