Skip to content

Commit

Permalink
Styling fixes to make it more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
b-wils committed Aug 5, 2024
1 parent f32e287 commit 4e9dbc0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/static/js/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,20 +497,20 @@ class Validator
const pathParts = path.split('/');

const names = [];
for (const pathPart of pathParts) {
if (pathPart === '#' || pathPart === '') {
continue;
}

data = data[pathPart];
for (const pathPart of pathParts)
{
if (pathPart === '#' || pathPart === '')
continue;

if (!data) {
break;
}
data = data[pathPart];

if (!data)
break;

if (data.ty) {
names.push(data.nm);
}
// Every layer with a type may be named
// Push a null value if it doesn't exist so display code can handle
if (data.ty)
names.push(data.nm);
}

return names;
Expand Down

0 comments on commit 4e9dbc0

Please sign in to comment.