Remove unused cached var in config package
Some checks failed
CI / lint (push) Failing after 43s
CI / test (push) Successful in 37s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Axel Meyer
2026-03-04 01:15:24 +01:00
parent c967727ff8
commit 795e1348b8
2 changed files with 3 additions and 11 deletions

View File

@@ -39,11 +39,6 @@ func TestSaveLoadRoundTrip(t *testing.T) {
t.Fatalf("Save failed: %v", err)
}
// Clear cache so Load reads from disk
mu.Lock()
cached = nil
mu.Unlock()
loaded := Load()
if loaded.SyncthingAPIKey != "test-key-12345" {
t.Errorf("API key not round-tripped: got %q", loaded.SyncthingAPIKey)