Skip to content

Conversation

@rin-yato
Copy link
Contributor

@rin-yato rin-yato commented Aug 5, 2023

Please review carefully, Im not sure where to put helper functions and types. I wanted to break the function into smaller functions, so that it would be easier to read.

@rin-yato
Copy link
Contributor Author

rin-yato commented Aug 5, 2023

Oh no, should I have included the package.json in my pull request?

const enumValues = enumSchema.find((tempEnum) => {
if (column) {
// normally column will be enum
return tempEnum.column === column.replaceAll('`', '');
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be expensive to repeating replaceAll which can just do it one time at the top.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How did I not think of this? 😱

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have moved replaceAll higher up

@rin-yato
Copy link
Contributor Author

rin-yato commented Aug 6, 2023

I have changed the code as per your suggestion.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@invisal invisal merged commit 1b04da9 into querymx:main Aug 7, 2023
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