refactor: use `cmp.Or`

Andrey Nering created

Change summary

google/google.go | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

Detailed changes

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,