Skip to content

Commit

Permalink
simplify continue in canvasPainting
Browse files Browse the repository at this point in the history
  • Loading branch information
JackLewis-digirati committed Jan 15, 2025
1 parent e1fef55 commit 0d25f9a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ public static Manifest Merge(Manifest baseManifest, List<CanvasPainting>? canvas
// We want to use the canvas order set when creating assets, rather than the
foreach (var canvasPainting in orderedCanvasPaintings)
{
itemDictionary.TryGetValue(canvasPainting.AssetId!, out var generatedItem);

if (generatedItem == null) continue;
if (!itemDictionary.TryGetValue(canvasPainting.AssetId!, out var generatedItem)) continue;

var existingItem = indexedBaseManifest.FirstOrDefault(bm => bm.item.Id == generatedItem.Id);

Expand Down

0 comments on commit 0d25f9a

Please sign in to comment.