Skip to content

Commit 9659919

Browse files
author
nicol
committed
update indentation
1 parent a1de765 commit 9659919

2 files changed

Lines changed: 144 additions & 121 deletions

File tree

src/main/java/org/magic/api/decksniffer/impl/TCGPlayerDeckSniffer.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ private void fillData(JsonObject obj, String side, Map<MTGCard,Integer> data)
7777
var qty = je.getAsJsonObject().get("quantity").getAsInt();
7878

7979
var c = parseCard(cardData);
80-
if(c!=null)
80+
81+
if(c!=null) {
8182
data.put(c, qty);
83+
}
8284

8385
});
8486
}
@@ -126,8 +128,10 @@ public List<RetrievableDeck> getDeckList(String filter, MTGCard mc) throws IOExc
126128
deck.setName(d.getAsJsonObject().get(DECK_DATA).getAsJsonObject().get("deckName").getAsString());
127129
deck.setUrl(URI.create("https://infinite-api.tcgplayer.com/deck/magic/"+d.getAsJsonObject().get("deckID").getAsString()));
128130

129-
if(d.getAsJsonObject().get(DECK_DATA).getAsJsonObject().get("colors")!=null)
131+
if(d.getAsJsonObject().get(DECK_DATA).getAsJsonObject().get("colors")!=null) {
130132
deck.setColor(Arrays.stream(d.getAsJsonObject().get(DECK_DATA).getAsJsonObject().get("colors").getAsString().split(",")).map(s -> "{" + s + "}").collect(Collectors.joining()));
133+
}
134+
131135
list.add(deck);
132136
}
133137
return list;

0 commit comments

Comments
 (0)