Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update markInputRule.ts #4162

Merged
merged 1 commit into from
Jul 7, 2023
Merged

Update markInputRule.ts #4162

merged 1 commit into from
Jul 7, 2023

Conversation

mcshaz
Copy link
Contributor

@mcshaz mcshaz commented Jun 26, 2023

Please describe your changes

trivial change - the markEnd variable was assigned outside the if block and then reassigned within the block without ever using the initial value. Using const assignment just above the first use of the variable improves readability.

How did you accomplish your changes

search through the file for any other occurences of markEnd - there are none

How have you tested your changes

N/A trivial change to help people trying to read and understand what the code and variables are achieving

How can we verify your changes

look at the tiny changes to the file, verify there are no other occurences of markEnd with a simple text search of the file

Remarks

This will make no difference to the function, but improves readability & most style guides do not like useless assignment or assigning outside the block a variable is used and prefer const over let when never reassigning etc.

Checklist

  • [ x] The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

trivial change - the markEnd variable was assigned outside the block and then reassigned within the block without ever using the initial value. Using const assignment just above the first use of the variable improves readability.
@netlify
Copy link

netlify bot commented Jun 26, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit a75a359
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/649a05e5de55a500080c7be9
😎 Deploy Preview https://deploy-preview-4162--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@bdbch bdbch left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Looks good to me. @svenadlung what about you?

@bdbch
Copy link
Contributor

bdbch commented Jul 7, 2023

@svenadlung I'll merge this for now as this should not break anything.

@bdbch bdbch merged commit 18946b1 into ueberdosis:develop Jul 7, 2023
4 checks passed
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