Skip to content

Commit

Permalink
removed unnecesary log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline committed Sep 4, 2024
1 parent 09e0153 commit 1d4506b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
7 changes: 1 addition & 6 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package config

import (
"fmt"
"os"
"path/filepath"
"testing"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 1d4506b

Please sign in to comment.