From 0b24a6a228144601a27aedb9044ae5fd3de43315 Mon Sep 17 00:00:00 2001 From: iChemy Date: Mon, 1 Jul 2024 20:14:53 +0900 Subject: [PATCH] :art: change nil return to empty struct --- domain/filter/shorthand.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/filter/shorthand.go b/domain/filter/shorthand.go index 6835b968..d91ae875 100644 --- a/domain/filter/shorthand.go +++ b/domain/filter/shorthand.go @@ -105,7 +105,7 @@ func AddAnd(lhs, rhs Expr) Expr { // 双方がゼロのき nil を返す func FilterDuration(since, until time.Time) (Expr, error) { if since.IsZero() && until.IsZero() { - return nil, nil + return &CmpExpr{}, nil } else if since.IsZero() { return &CmpExpr{ Attr: AttrTimeStart,