Skip to content

Commit 66057ee

Browse files
removing unnecessary condition
1 parent 77d5ef2 commit 66057ee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

oracle/query.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ func BeforeQuery(db *gorm.DB) {
5757
name := db.Statement.TableExpr.SQL
5858
if strings.Contains(name, " ") || strings.Contains(name, "`") {
5959
if results := tableRegexp.FindStringSubmatch(name); len(results) == 3 {
60-
if results[2] != "" {
61-
db.Statement.Table = results[2]
62-
}
60+
db.Statement.Table = results[2]
6361
}
6462
}
6563
}

0 commit comments

Comments
 (0)