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

refactor(ext/console): split code into functions #23274

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ArthurLobopro
Copy link

I turned some parts of cssToAnsi into smaller functions to improve reading and maintenace

@CLAassistant
Copy link

CLAassistant commented Apr 8, 2024

CLA assistant check
All committers have signed the CLA.

@ArthurLobopro
Copy link
Author

As you can see, I just turned some big parts of cssToAnsi into smaller functions that returns the ansi code. It's only an idea I had while I was taking a look on the code.

@ArthurLobopro ArthurLobopro marked this pull request as ready for review April 8, 2024 04:49
ext/console/01_console.js Outdated Show resolved Hide resolved
ext/console/01_console.js Outdated Show resolved Hide resolved
@ArthurLobopro
Copy link
Author

I thought about doing this, but I saw a lot of comparisons using == so I thought it was a lint rule or something like this

ArthurLobopro and others added 5 commits April 26, 2024 12:53
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Signed-off-by: Arthur Lobo <64273139+ArthurLobopro@users.noreply.github.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Signed-off-by: Arthur Lobo <64273139+ArthurLobopro@users.noreply.github.com>
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.

None yet

3 participants