Skip to content

Commit 2612fdb

Browse files
committed
chore: address review comments
1 parent 984312c commit 2612fdb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

backends/ent/annotations.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ func (backend *Backend) GetDocumentsByAnnotation(name string, values ...string)
204204
return nil, errUninitializedClient
205205
}
206206

207-
predicates := []predicate.Annotation{annotation.NameEQ(name), annotation.Not(annotation.HasNode())}
207+
predicates := []predicate.Annotation{
208+
annotation.NameEQ(name),
209+
annotation.Not(annotation.HasNode()),
210+
}
208211

209212
if len(values) > 0 {
210213
predicates = append(predicates, annotation.ValueIn(values...))

backends/ent/internal_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
package ent
88

9-
import (
10-
"context"
11-
)
9+
import "context"
1210

1311
func (backend *Backend) Context() context.Context {
1412
return backend.ctx

0 commit comments

Comments
 (0)