diff --git a/internal/rw_config_file.go b/internal/rw_config_file.go index 9828c34..dcd7e5e 100644 --- a/internal/rw_config_file.go +++ b/internal/rw_config_file.go @@ -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.")