refactor: simplify logic understanding

This commit is contained in:
2024-01-30 23:57:38 +01:00
parent cc9a1cf6a2
commit 5c39afbe20
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ const customRule = {
if (url.hash.length <= 0) {
if (hrefSrc.includes("#")) {
if (type !== "link_open") {
if (type === "image") {
onError({
lineNumber,
detail: `${detail} should not have a fragment identifier as it is an image`,
@@ -89,7 +89,7 @@ const customRule = {
continue
}
if (type !== "link_open") {
if (type === "image") {
onError({
lineNumber,
detail: `${detail} should not have a fragment identifier as it is an image`,