Skip to content

Commit df7adf4

Browse files
authored
Merge pull request #3434 from howardjohn/json/unmarshal-pointer
Fix incorrect pointer inputs to `json.Unmarshal`
2 parents cb65bd4 + ee97fe9 commit df7adf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/config/configfile/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (configFile *ConfigFile) LegacyLoadFromReader(configData io.Reader) error {
113113
// LoadFromReader reads the configuration data given and sets up the auth config
114114
// information with given directory and populates the receiver object
115115
func (configFile *ConfigFile) LoadFromReader(configData io.Reader) error {
116-
if err := json.NewDecoder(configData).Decode(&configFile); err != nil && !errors.Is(err, io.EOF) {
116+
if err := json.NewDecoder(configData).Decode(configFile); err != nil && !errors.Is(err, io.EOF) {
117117
return err
118118
}
119119
var err error

0 commit comments

Comments
 (0)