test: fix govet err shadow in model header test

This commit is contained in:
Alix-007 2026-03-30 10:44:15 +08:00
parent 02427474ad
commit 635e6255ba

View file

@ -90,7 +90,8 @@ func TestHandleListModels_ConfiguredStatusUsesRuntimeProbesForLocalModels(t *tes
},
}
cfg.Agents.Defaults.ModelName = "openai-oauth"
if err := config.SaveConfig(configPath, cfg); err != nil {
err = config.SaveConfig(configPath, cfg)
if err != nil {
t.Fatalf("SaveConfig() error = %v", err)
}