Skip to content

Commit de60867

Browse files
committed
fix: errcheck violations in main_test.go
1 parent f7d1210 commit de60867

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/memoryd-tray/main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ func TestCleanMCPConfig_MissingFile(t *testing.T) {
387387

388388
func TestCleanMCPConfig_InvalidJSON(t *testing.T) {
389389
p := filepath.Join(t.TempDir(), "bad.json")
390-
os.WriteFile(p, []byte("{{bad"), 0600)
390+
_ = os.WriteFile(p, []byte("{{bad"), 0600)
391391
if cleanMCPConfig(p) {
392392
t.Error("expected false")
393393
}
@@ -396,7 +396,7 @@ func TestCleanMCPConfig_InvalidJSON(t *testing.T) {
396396
func TestCleanMCPConfig_NoServersKey(t *testing.T) {
397397
p := filepath.Join(t.TempDir(), "c.json")
398398
data, _ := json.Marshal(map[string]any{"other": 1})
399-
os.WriteFile(p, data, 0600)
399+
_ = os.WriteFile(p, data, 0600)
400400
if cleanMCPConfig(p) {
401401
t.Error("expected false")
402402
}
@@ -405,7 +405,7 @@ func TestCleanMCPConfig_NoServersKey(t *testing.T) {
405405
func TestCleanMCPConfig_ServersNotObject(t *testing.T) {
406406
p := filepath.Join(t.TempDir(), "c.json")
407407
data, _ := json.Marshal(map[string]any{"mcpServers": "string"})
408-
os.WriteFile(p, data, 0600)
408+
_ = os.WriteFile(p, data, 0600)
409409
if cleanMCPConfig(p) {
410410
t.Error("expected false")
411411
}

0 commit comments

Comments
 (0)