Skip to content

Commit

Permalink
cleared lint issues imageshyperlink2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinaykumargujja committed Oct 23, 2023
1 parent 634b36b commit a33d9d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/imageshyperlink/imageshyperlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export default async function decorate(block) {
const refAnchorEl = block.querySelector('a');
const pic = block.querySelector('picture');
if (refAnchorEl) {
refAnchorEl.hasAttribute('href') && anchorEl.setAttribute('href', refAnchorEl.getAttribute('href'));
refAnchorEl.getAttribute('title') && anchorEl.setAttribute('title', refAnchorEl.getAttribute('title'));
refAnchorEl.getAttribute('alt') && anchorEl.setAttribute('alt', refAnchorEl.getAttribute('alt'));
if(refAnchorEl.hasAttribute('href')) anchorEl.setAttribute('href', refAnchorEl.getAttribute('href'));

Check failure on line 10 in blocks/imageshyperlink/imageshyperlink.js

View workflow job for this annotation

GitHub Actions / build

Expected space(s) after "if"
if(refAnchorEl.hasAttribute('title')) anchorEl.setAttribute('title', refAnchorEl.getAttribute('title'));

Check failure on line 11 in blocks/imageshyperlink/imageshyperlink.js

View workflow job for this annotation

GitHub Actions / build

Expected space(s) after "if"
if(refAnchorEl.hasAttribute('alt')) anchorEl.setAttribute('alt', refAnchorEl.getAttribute('alt'));

Check failure on line 12 in blocks/imageshyperlink/imageshyperlink.js

View workflow job for this annotation

GitHub Actions / build

Expected space(s) after "if"
anchorEl.appendChild(pic);
block.textContent = '';
block.append(anchorEl);
Expand Down

0 comments on commit a33d9d5

Please sign in to comment.