Skip to content

Commit

Permalink
Updating to use renamed struct (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Dec 18, 2023
1 parent ad07ae8 commit 85ec015
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tfexec/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ type UseJSONNumberOption struct {
}

// JSONNumber determines how numerical values are handled during JSON decoding.
func JSONNumber(useJSONNumber bool) *UseJSONNumber {
return &UseJSONNumber{useJSONNumber}
func JSONNumber(useJSONNumber bool) *UseJSONNumberOption {
return &UseJSONNumberOption{useJSONNumber}
}

type PlatformOption struct {
Expand Down
4 changes: 2 additions & 2 deletions tfexec/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

type showConfig struct {
reattachInfo ReattachInfo
jsonNumber *UseJSONNumber
jsonNumber *UseJSONNumberOption
}

var defaultShowOptions = showConfig{}
Expand All @@ -27,7 +27,7 @@ func (opt *ReattachOption) configureShow(conf *showConfig) {
conf.reattachInfo = opt.info
}

func (opt *UseJSONNumber) configureShow(conf *showConfig) {
func (opt *UseJSONNumberOption) configureShow(conf *showConfig) {
conf.jsonNumber = opt
}

Expand Down

0 comments on commit 85ec015

Please sign in to comment.