Skip to content
Snippets Groups Projects
Commit d8cb6d1b authored by Gospodin Bodurov's avatar Gospodin Bodurov
Browse files

Fix bug

parent 78b707d5
Branches
Tags
No related merge requests found
...@@ -38,7 +38,7 @@ func generateUnusedUUID(client *client.DataStorageClientImpl) (string, error) { ...@@ -38,7 +38,7 @@ func generateUnusedUUID(client *client.DataStorageClientImpl) (string, error) {
// check that uuid is not used // check that uuid is not used
data, _ := client.DoGetDataCall("keys", uuid+"/"+api.KeyType.String(api.KeyType_PRIVATE)) data, _ := client.DoGetDataCall("keys", uuid+"/"+api.KeyType.String(api.KeyType_PRIVATE))
if data.Errors != "" || err != nil { if data == nil || data.Errors != "" || err != nil {
return uuid, nil return uuid, nil
} }
if count >= 10 { if count >= 10 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment