From 44e390194393713a351cb9f1b57e30d58b15bcb5 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Tue, 9 Sep 2025 17:12:51 -0300 Subject: [PATCH] refactor: use `cmp.Or` --- google/google.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/google/google.go b/google/google.go index 0811b103615d3a2fc413698ccbe9f9f06cd42830..eef7f43d34b1abb5a5d28371916048a25cac39c3 100644 --- a/google/google.go +++ b/google/google.go @@ -38,9 +38,7 @@ func New(opts ...Option) ai.Provider { o(&options) } - if options.name == "" { - options.name = "google" - } + options.name = cmp.Or(options.name, "google") return &provider{ options: options,