Skip to content

Commit 9596881

Browse files
committed
lint: fix naked return warnings
1 parent d1d1b1a commit 9596881

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

google/google.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ func toGoogleTools(tools []ai.Tool, toolChoice *ai.ToolChoice) (googleTools []*g
690690
})
691691
}
692692
if toolChoice == nil {
693-
return //nolint: nakedret
693+
return googleTools, googleToolChoice, warnings
694694
}
695695
switch *toolChoice {
696696
case ai.ToolChoiceAuto:
@@ -721,7 +721,7 @@ func toGoogleTools(tools []ai.Tool, toolChoice *ai.ToolChoice) (googleTools []*g
721721
},
722722
}
723723
}
724-
return //nolint: nakedret
724+
return googleTools, googleToolChoice, warnings
725725
}
726726

727727
func convertSchemaProperties(parameters map[string]any) map[string]*genai.Schema {

0 commit comments

Comments
 (0)