Skip to content

Commit

Permalink
refactor: rename nil table function
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 committed Aug 14, 2024
1 parent d27036c commit 0f0ae3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ func (r *Request) WithTables(tables ...*table.Table) *Request {
return r
}

func (r *Request) IsZero() bool {
func (r *Request) IsNilTable() bool {
return r.tables == nil
}

func (r *Request) Build() (*gpb.GreptimeRequest, error) {
if r.IsZero() {
if r.IsNilTable() {
return nil, errs.ErrEmptyTable
}

Expand Down

0 comments on commit 0f0ae3f

Please sign in to comment.