Skip to content

Commit

Permalink
🎨 change nil return to empty struct
Browse files Browse the repository at this point in the history
  • Loading branch information
iChemy committed Jul 1, 2024
1 parent e80bc38 commit 0b24a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/filter/shorthand.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0b24a6a

Please sign in to comment.