Skip to content

Commit

Permalink
default type should be a map
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidlazio committed Jun 3, 2024
1 parent d56de80 commit 7bddc42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/confidence/confidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ func (e Confidence) GetStringValue(ctx context.Context, flag string, defaultValu
return e.GetStringFlag(ctx, flag, defaultValue).Value
}

func (e Confidence) GetObjectFlag(ctx context.Context, flag string, defaultValue string) InterfaceResolutionDetail {
func (e Confidence) GetObjectFlag(ctx context.Context, flag string, defaultValue map[string]interface{}) InterfaceResolutionDetail {
resp := e.ResolveFlag(ctx, flag, defaultValue, reflect.Map)
return resp
}

func (e Confidence) GetObjectValue(ctx context.Context, flag string, defaultValue string) interface{} {
func (e Confidence) GetObjectValue(ctx context.Context, flag string, defaultValue map[string]interface{}) interface{} {
return e.GetObjectFlag(ctx, flag, defaultValue).Value
}

Expand Down

0 comments on commit 7bddc42

Please sign in to comment.