From 2612fdbcbf5048d00dd02d7548f22772b089584b Mon Sep 17 00:00:00 2001 From: Allen Shearin Date: Thu, 19 Dec 2024 10:07:05 -0700 Subject: [PATCH] chore: address review comments --- backends/ent/annotations.go | 5 ++++- backends/ent/internal_test.go | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/backends/ent/annotations.go b/backends/ent/annotations.go index 5884e77..617a531 100644 --- a/backends/ent/annotations.go +++ b/backends/ent/annotations.go @@ -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...)) diff --git a/backends/ent/internal_test.go b/backends/ent/internal_test.go index 335f668..62aa16f 100644 --- a/backends/ent/internal_test.go +++ b/backends/ent/internal_test.go @@ -6,9 +6,7 @@ package ent -import ( - "context" -) +import "context" func (backend *Backend) Context() context.Context { return backend.ctx