Skip to content

Conversation

@Inuth0603
Copy link
Contributor

@Inuth0603 Inuth0603 commented Jan 29, 2026

This PR refactors js/block.js to combine duplicate readAsDataURL calls into a single conditional branch (DRY).

Formatting Note:
Since PR #5388 (update gulp-prettier to v6) was merged recently, this file required reformatting to pass the new CI/CD standards. The large diff reflects the auto-formatting updates enforced by Prettier 2.8.8.

  • Reduces code duplication
  • Updates file to current formatting standards

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

Combine duplicate conditional branches where both 'media' and 'audiofile' cases called the same readAsDataURL method. Restore semicolon in utils.js for ESLint/prettier compliance. Format block.js with Prettier 2.0.5 to match CI.
@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

Copy link
Contributor

@kartikktripathi kartikktripathi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, I reviewed your code, and everything seems perfectly fine, LGTM, Good Contribution!

@Inuth0603
Copy link
Contributor Author

Hey, I reviewed your code, and everything seems perfectly fine, LGTM, Good Contribution!

Thanks for the review @kartikktripathi! 🚀
Glad the logic consolidation looks clean. Fingers crossed for the merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants