Remove temporary patch for generating UUID in Identity.Save() function
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc 2024-03-29 18:16:34 +01:00
parent 31df45e771
commit 385c5f3298

View File

@ -181,10 +181,6 @@ func (id *Identity) Save() error {
if GetConfig().IdentityFile == "" { if GetConfig().IdentityFile == "" {
return errors.New("identity filename empty") return errors.New("identity filename empty")
} }
//! temp patch
if id.Uuid == "" {
id.Uuid = uuid.New().String()
}
b, _ := json.Marshal(id) b, _ := json.Marshal(id)
armor, err := helper.EncryptMessageWithPassword([]byte(GetConfig().memoryPassword), string(b)) armor, err := helper.EncryptMessageWithPassword([]byte(GetConfig().memoryPassword), string(b))
if err != nil { if err != nil {