Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyjoygh committed Feb 3, 2025
1 parent e0e735d commit f25acfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions store/db/mysql/memo_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import (
)

func ConvertExprToSQL(ctx *filter.ConvertContext, expr *exprv1.Expr) error {
switch v := expr.ExprKind.(type) {
case *exprv1.Expr_CallExpr:
if v, ok := expr.ExprKind.(*exprv1.Expr_CallExpr); ok {
switch v.CallExpr.Function {
case "_||_", "_&&_":
if len(v.CallExpr.Args) != 2 {
Expand Down
3 changes: 1 addition & 2 deletions store/db/postgres/memo_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import (
)

func ConvertExprToSQL(ctx *filter.ConvertContext, expr *exprv1.Expr) error {
switch v := expr.ExprKind.(type) {
case *exprv1.Expr_CallExpr:
if v, ok := expr.ExprKind.(*exprv1.Expr_CallExpr); ok {
switch v.CallExpr.Function {
case "_||_", "_&&_":
if len(v.CallExpr.Args) != 2 {
Expand Down
3 changes: 1 addition & 2 deletions store/db/sqlite/memo_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import (
)

func ConvertExprToSQL(ctx *filter.ConvertContext, expr *exprv1.Expr) error {
switch v := expr.ExprKind.(type) {
case *exprv1.Expr_CallExpr:
if v, ok := expr.ExprKind.(*exprv1.Expr_CallExpr); ok {
switch v.CallExpr.Function {
case "_||_", "_&&_":
if len(v.CallExpr.Args) != 2 {
Expand Down

0 comments on commit f25acfe

Please sign in to comment.