Skip to content

Commit

Permalink
Merge pull request #325 from microsoft/chore/linting
Browse files Browse the repository at this point in the history
chore: linting
  • Loading branch information
baywet authored Aug 12, 2024
2 parents b896075 + 3919578 commit 65257cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/abstractions/store/InMemoryBackingStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ private void EnsureCollectionPropertyIsConsistent(string key, object? storeItem)
// Call Get<>() on nested properties so that this method may be called recursively to ensure collections are consistent
foreach(var item in collectionTuple.Item1)
{
if(item is IBackedModel store)
if(item is IBackedModel backedModel)
{
foreach(var innerItem in store.BackingStore.Enumerate())
foreach(var innerItem in backedModel.BackingStore.Enumerate())
{
store.BackingStore.Get<object>(innerItem.Key);
backedModel.BackingStore.Get<object>(innerItem.Key);
}
}
}
Expand Down

0 comments on commit 65257cb

Please sign in to comment.