Skip to content

Commit

Permalink
fix #1700: update tests to use local viper instance (#1791)
Browse files Browse the repository at this point in the history
* fix:test to use local viper instance

* fix linting

* fix typo

* remove unsed function
  • Loading branch information
smukk9 authored Apr 7, 2024
1 parent 947eb59 commit 2e91486
Show file tree
Hide file tree
Showing 2 changed files with 289 additions and 277 deletions.
6 changes: 0 additions & 6 deletions viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1791,12 +1791,6 @@ func (v *Viper) writeConfig(filename string, force bool) error {
return f.Sync()
}

// Unmarshal a Reader into a map.
// Should probably be an unexported function.
func unmarshalReader(in io.Reader, c map[string]any) error {
return v.unmarshalReader(in, c)
}

func (v *Viper) unmarshalReader(in io.Reader, c map[string]any) error {
buf := new(bytes.Buffer)
buf.ReadFrom(in)
Expand Down
Loading

0 comments on commit 2e91486

Please sign in to comment.