Skip to content

Commit

Permalink
Value cannot be null
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Mar 23, 2022
1 parent 1530050 commit 037f418
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,13 @@ public static TargetedDependenciesSnapshot FromChanges(
continue;
#pragma warning restore CS0618 // Type or member is obsolete

IDependency? dependency = new Dependency(added);
IDependency dependency = new Dependency(added);

DeduplicateCaptions(ref dependency, dependencyById);

if (dependency != null)
{
// A dependency was accepted
DependencyId id = added.GetDependencyId();
dependencyById[id] = dependency;
anyChanges = true;
}
dependencyById[dependency.GetDependencyId()] = dependency;

anyChanges = true;
}
}

Expand Down

0 comments on commit 037f418

Please sign in to comment.