From e078644cafa6c4c43f7c03622faebb37dc507b1b Mon Sep 17 00:00:00 2001 From: MusaBrt Date: Wed, 18 Nov 2020 01:11:31 +0300 Subject: [PATCH] removing unnecessary condition L152, null checking for initialized final field --- .../card/dl/sources/CopyPasteImageSource.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/CopyPasteImageSource.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/CopyPasteImageSource.java index 8f76b84992..dcd7b067b6 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/CopyPasteImageSource.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/CopyPasteImageSource.java @@ -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();