From 257d64f64c00a0343cc4826865329c0876790e24 Mon Sep 17 00:00:00 2001 From: Emilia Grant Date: Fri, 23 Jan 2026 09:33:09 -0500 Subject: [PATCH] more lint --- internal/clientcache/cmd/search/search.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/clientcache/cmd/search/search.go b/internal/clientcache/cmd/search/search.go index 451f04ebc9..08ffc7372a 100644 --- a/internal/clientcache/cmd/search/search.go +++ b/internal/clientcache/cmd/search/search.go @@ -179,7 +179,7 @@ func (c *SearchCommand) Run(args []string) int { c.PrintCliError(stderrors.New("Max result set size must be greater than or equal to -1")) return base.CommandUserError case c.flagMaxResultSetSize > math.MaxInt: - c.PrintCliError(stderrors.New(fmt.Sprintf("Max result set size must be less than or equal to the %v", math.MaxInt))) + c.PrintCliError(fmt.Errorf("Max result set size must be less than or equal to the %v", math.MaxInt)) return base.CommandUserError } @@ -197,11 +197,11 @@ func (c *SearchCommand) Run(args []string) int { if c.flagSortBy != "" { sortableBy, ok := daemon.SortableColumnsForResource[cache.ToSearchableResource(c.flagResource)] if !ok { - c.PrintCliError(stderrors.New(fmt.Sprintf("resource %q is not sortable", c.flagResource))) + c.PrintCliError(fmt.Errorf("resource %q is not sortable", c.flagResource)) return base.CommandUserError } if !slices.Contains(sortableBy, cache.SortBy(c.flagSortBy)) { - c.PrintCliError(stderrors.New(fmt.Sprintf("resource %q is not sortable by %q. %q is sortable by %v", c.flagResource, c.flagSortBy, c.flagResource, sortableBy))) + c.PrintCliError(fmt.Errorf("resource %q is not sortable by %q. %q is sortable by %v", c.flagResource, c.flagSortBy, c.flagResource, sortableBy)) return base.CommandUserError } }