Skip to content

Commit 73acd10

Browse files
committed
Fix failing test
1 parent a90f0a3 commit 73acd10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RetailCoder.VBE/Inspections/ObjectVariableNotSetInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
9090
State.AllUserDeclarations.Where(item =>
9191
!item.IsSelfAssigned &&
9292
!ValueTypes.Contains(item.AsTypeName) &&
93-
item.AsTypeDeclaration != null &&
93+
(item.AsTypeDeclaration == null ||
9494
item.AsTypeDeclaration.DeclarationType != DeclarationType.Enumeration &&
95-
item.AsTypeDeclaration.DeclarationType != DeclarationType.UserDefinedType &&
95+
item.AsTypeDeclaration.DeclarationType != DeclarationType.UserDefinedType) &&
9696
(item.DeclarationType == DeclarationType.Variable ||
9797
item.DeclarationType == DeclarationType.Parameter));
9898

0 commit comments

Comments
 (0)