mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
removing unnecessary condition
L152, null checking for initialized final field
This commit is contained in:
parent
3dc720848d
commit
e078644caf
1 changed files with 6 additions and 8 deletions
|
@ -149,15 +149,13 @@ public enum CopyPasteImageSource implements CardImageSource {
|
|||
viewMissingCards = false;
|
||||
String displayMissingCardsStr = "Up to the first 20 cards are:\n";
|
||||
String missingCardsStr = "";
|
||||
if (this.missingCards != null) {
|
||||
for (String card : this.missingCards) {
|
||||
if (count < 20) {
|
||||
displayMissingCardsStr = displayMissingCardsStr + card + "\n";
|
||||
}
|
||||
missingCardsStr = missingCardsStr + card + "\n";
|
||||
|
||||
count++;
|
||||
for (String card : this.missingCards) {
|
||||
if (count < 20) {
|
||||
displayMissingCardsStr = displayMissingCardsStr + card + "\n";
|
||||
}
|
||||
missingCardsStr = missingCardsStr + card + "\n";
|
||||
|
||||
count++;
|
||||
}
|
||||
StringSelection stringSelection = new StringSelection(missingCardsStr);
|
||||
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
|
||||
|
|
Loading…
Reference in a new issue