Skip to content

Commit 4f54d94

Browse files
committed
Rename the variable to align with what it does
1 parent df3f376 commit 4f54d94

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/entity.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ export namespace entity {
843843
const splitPath = path.split(delimiter);
844844
const firstPathPart = splitPath.shift()!;
845845
const remainderPath = splitPath.join(delimiter).replace(/^(\.|\[\])/, '');
846-
const isFirstPathPartUndefined =
846+
const isFirstPathPartDefined =
847847
entity.properties![firstPathPart] !== undefined;
848848

849849
if (
@@ -857,7 +857,7 @@ export namespace entity {
857857
if (
858858
firstPathPartIsArray &&
859859
// check also if the property in question is actually an array value.
860-
isFirstPathPartUndefined &&
860+
isFirstPathPartDefined &&
861861
entity.properties![firstPathPart].arrayValue &&
862862
// check if wildcard is not applied
863863
!hasWildCard
@@ -886,7 +886,7 @@ export namespace entity {
886886
firstPathPartIsArray &&
887887
hasWildCard &&
888888
remainderPath === '*' &&
889-
isFirstPathPartUndefined
889+
isFirstPathPartDefined
890890
) {
891891
const array = entity.properties![firstPathPart].arrayValue;
892892
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -909,7 +909,7 @@ export namespace entity {
909909
if (
910910
hasWildCard &&
911911
remainderPath === '*' &&
912-
isFirstPathPartUndefined
912+
isFirstPathPartDefined
913913
) {
914914
const parentEntity = entity.properties![firstPathPart].entityValue;
915915

@@ -923,7 +923,7 @@ export namespace entity {
923923
} else {
924924
excludePathFromEntity(entity, firstPathPart);
925925
}
926-
} else if (isFirstPathPartUndefined) {
926+
} else if (isFirstPathPartDefined) {
927927
const parentEntity = entity.properties![firstPathPart].entityValue;
928928
excludePathFromEntity(parentEntity, remainderPath);
929929
}

0 commit comments

Comments
 (0)