removed unnecessary null check (calling method already has null check)
parent
445c7a81a0
commit
f4f73212d0
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue