Skip to content

Commit dc55e81

Browse files
committed
Use (*OpenAIRouter)(nil) for interface compliance check
Signed-off-by: cryo <[email protected]>
1 parent 89dfce7 commit dc55e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/semantic-router/pkg/extproc/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type OpenAIRouter struct {
3737
}
3838

3939
// Ensure OpenAIRouter implements the ext_proc calls
40-
var _ ext_proc.ExternalProcessorServer = &OpenAIRouter{}
40+
var _ ext_proc.ExternalProcessorServer = (*OpenAIRouter)(nil)
4141

4242
// NewOpenAIRouter creates a new OpenAI API router instance
4343
func NewOpenAIRouter(configPath string) (*OpenAIRouter, error) {

0 commit comments

Comments
 (0)