Skip to content

Commit

Permalink
Merge pull request #1335 from VAGoncharov/feature/1334-md-object-attr…
Browse files Browse the repository at this point in the history
…ibute-comment-not-exist-bug

#1334 Исправление ошибки в проверке md-object-attribute-comment-not-e…
  • Loading branch information
iArtemv authored Aug 14, 2023
2 parents 78d45c3 + c68c9de commit 77a5e3d
Showing 1 changed file with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ protected void check(Object object, ResultAcceptor resultAcceptor, ICheckParamet
}

}

if (!monitor.isCanceled() && !attributeExist)
{
resultAcceptor.addIssue(
Messages.MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist, object);
}
}
else if (object instanceof Catalog && checkCatalogs)
{
Expand All @@ -153,12 +159,12 @@ else if (object instanceof Catalog && checkCatalogs)
break;
}
}
}

if (!monitor.isCanceled() && !attributeExist)
{
resultAcceptor
.addIssue(Messages.MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist, object);
if (!monitor.isCanceled() && !attributeExist)
{
resultAcceptor.addIssue(
Messages.MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist, object);
}
}

}
Expand All @@ -179,4 +185,5 @@ private Set<String> getListOfAttributeNames(ICheckParameters parameters)

return attributeNames;
}

}

0 comments on commit 77a5e3d

Please sign in to comment.