-
Notifications
You must be signed in to change notification settings - Fork 10
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
HCK-7062: fix Sonar reports #51
Conversation
AlikRakhmonov
commented
Jul 10, 2024
•
edited by github-actions
bot
Loading
edited by github-actions
bot
HCK-7062 MariaDB - Fix sonar reports |
Quality Gate passedIssues Measures |
@@ -198,19 +198,17 @@ module.exports = (baseProvider, options, app) => { | |||
return ''; | |||
} | |||
|
|||
const allDeactivated = checkAllKeysDeactivated(index.indxKey || []); | |||
const allDeactivated = checkAllKeysDeactivated(index.indxKey); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it's checked here
const wholeStatementCommented = index.isActivated === false || !isParentActivated || allDeactivated; | ||
const indexType = index.indexType ? `${_.toUpper(index.indexType)} ` : ''; | ||
const ifNotExist = index.ifNotExist ? 'IF NOT EXISTS ' : ''; | ||
const name = wrap(index.indxName || '', '`', '`'); | ||
const name = wrap(index.indxName, '`', '`'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it's checked here