fix: address code review findings

This commit is contained in:
2026-07-19 19:11:22 +03:00
parent c70f46af27
commit f1839ad9e7
3 changed files with 8 additions and 13 deletions

View File

@@ -35,8 +35,6 @@ telegram:
scanner:
fuzzy_threshold: 0.9
ignore_bootlegs: true
include_compilations: false
`
if err := os.WriteFile(path, []byte(yaml), 0644); err != nil {
t.Fatalf("failed to write config: %v", err)
@@ -68,12 +66,6 @@ scanner:
if cfg.Scanner.FuzzyThreshold != 0.9 {
t.Errorf("expected fuzzy_threshold 0.9, got %f", cfg.Scanner.FuzzyThreshold)
}
if !cfg.Scanner.IgnoreBootlegs {
t.Error("expected ignore_bootlegs true")
}
if cfg.Scanner.IncludeCompilations {
t.Error("expected include_compilations false")
}
}
func TestLoadConfig_Defaults(t *testing.T) {