Skip to content

Commit

Permalink
chore: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ashearin committed Dec 19, 2024
1 parent 984312c commit 2612fdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion backends/ent/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ func (backend *Backend) GetDocumentsByAnnotation(name string, values ...string)
return nil, errUninitializedClient
}

predicates := []predicate.Annotation{annotation.NameEQ(name), annotation.Not(annotation.HasNode())}
predicates := []predicate.Annotation{
annotation.NameEQ(name),
annotation.Not(annotation.HasNode()),
}

if len(values) > 0 {
predicates = append(predicates, annotation.ValueIn(values...))
Expand Down
4 changes: 1 addition & 3 deletions backends/ent/internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

package ent

import (
"context"
)
import "context"

func (backend *Backend) Context() context.Context {
return backend.ctx
Expand Down

0 comments on commit 2612fdb

Please sign in to comment.