Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: fix linter
johnnyjoyf25acfe8e230
diff --git a/store/db/mysql/memo_filter.go b/store/db/mysql/memo_filter.goindex 8807c1e82..e32ab41dc 100644--- a/store/db/mysql/memo_filter.go+++ b/store/db/mysql/memo_filter.go@@ -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 {diff --git a/store/db/postgres/memo_filter.go b/store/db/postgres/memo_filter.goindex 06daaad27..4e6608bb4 100644--- a/store/db/postgres/memo_filter.go+++ b/store/db/postgres/memo_filter.go@@ -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 {diff --git a/store/db/sqlite/memo_filter.go b/store/db/sqlite/memo_filter.goindex c56530c02..3103a1ed6 100644--- a/store/db/sqlite/memo_filter.go+++ b/store/db/sqlite/memo_filter.go@@ -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 {