Skip to content

Commit

Permalink
add review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
florianrusch committed Nov 2, 2023
1 parent 86f3eef commit 2232d9f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

type ResourceConfig struct {
Type string
NestedConfig map[string]interface{} `mapstructure:",remain"`
NestedConfig map[string]any `mapstructure:",remain"`
}

type Config struct {
Expand Down
1 change: 0 additions & 1 deletion internal/config/viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
)

func InitViper() error {
//v := viper.New()
viper.AutomaticEnv()
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
viper.AddConfigPath(".")
Expand Down
2 changes: 1 addition & 1 deletion internal/destination/filesystem/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Config struct {
Path string
}

func New(c map[string]interface{}) (*Config, error) {
func New(c map[string]any) (*Config, error) {
var filesystemConfig Config

err := mapstructure.Decode(c, &filesystemConfig)
Expand Down
2 changes: 1 addition & 1 deletion internal/source/filesystem/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Config struct {
Path string
}

func New(c map[string]interface{}) (*Config, error) {
func New(c map[string]any) (*Config, error) {
var filesystemConfig Config

err := mapstructure.Decode(c, &filesystemConfig)
Expand Down

0 comments on commit 2232d9f

Please sign in to comment.