Skip to content

Commit

Permalink
fix(client): wrong commit code
Browse files Browse the repository at this point in the history
  • Loading branch information
ikr4-m committed Sep 2, 2024
1 parent de19b58 commit 63d28ce
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions internal/rw_config_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ func (c ConfigSourceAuth) WriteConfig() (err error) {
return nil
}

func (c ConfigSourceAuth) WriteConfig() (err error) {
strJsonByte, err := json.Marshal(c)
if err != nil {
return err
}
strConfig := base64.StdEncoding.EncodeToString(strJsonByte)
err = os.WriteFile(ConfigFileLocation, []byte(strConfig), 0644)
if err != nil {
return err
}

fmt.Println("Config file is saved on", ConfigFileLocation)
return nil
}

func (c ConfigSourceAuth) ParseConfig(conf *ConfigSourceAuth) error {
if !CheckConfigFileExist() {
return errors.New("No config file on local. Please log in first.")
Expand Down

0 comments on commit 63d28ce

Please sign in to comment.