From 1d4506b0951df30e17b58ed9cb774756fdba5fe8 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Wed, 4 Sep 2024 18:06:07 -0400 Subject: [PATCH] removed unnecesary log statements --- pkg/config/config.go | 2 -- pkg/config/config_test.go | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index a34f134..1bc53ba 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -59,7 +59,5 @@ func LoadConfig(path string, repoRootPathConfig string) (*Spec, error) { return nil, fmt.Errorf("error unmarshaling config: %w", err) } - fmt.Printf("Loaded config %v", config) - return config, nil } diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index b77cc42..cdbf650 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -1,7 +1,6 @@ package config import ( - "fmt" "os" "path/filepath" "testing" @@ -76,17 +75,13 @@ attribution: require.NoError(t, os.WriteFile(fallbackPath, []byte(fileContents), 0644)) // Print out the contents of the file we just wrote - writtenData, err := os.ReadFile(fallbackPath) + _, err := os.ReadFile(fallbackPath) require.NoError(t, err) - fmt.Printf("Contents written to file:\n%s\n", string(writtenData)) nonExistentPath := filepath.Join(tmpDir, "non-existent.yaml") config, err := LoadConfig(nonExistentPath, fallbackPath) - fmt.Printf("Loaded config: %+v\n", config) - fmt.Printf("Error: %v\n", err) - assert.NoError(t, err) assert.NotNil(t, config)