Skip to content

Commit

Permalink
refactor: Simplify comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed Nov 21, 2023
1 parent 5c2569b commit 548d60a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package org.sonar.plsqlopen.checks

import com.felipebz.flr.api.AstNode
import org.sonar.plsqlopen.typeIs
import org.sonar.plugins.plsqlopen.api.DmlGrammar
import org.sonar.plugins.plsqlopen.api.PlSqlGrammar
import org.sonar.plugins.plsqlopen.api.annotations.*
Expand All @@ -41,7 +40,6 @@ class InsertWithoutColumnsCheck : AbstractBaseCheck() {
val valuesClause = node.getFirstChildOrNull(DmlGrammar.VALUES_CLAUSE);

if (valuesClause != null &&
valuesClause.typeIs(DmlGrammar.VALUES_CLAUSE) &&
semantic(valuesClause.lastChild).plSqlType === PlSqlType.ROWTYPE) {
return
}
Expand Down

0 comments on commit 548d60a

Please sign in to comment.