Skip to content
Snippets Groups Projects
Commit 3aab4ce6 authored by Olgun Cengiz's avatar Olgun Cengiz :drum:
Browse files

rename variable and check empty string

parent ef7fd5b9
Branches
Tags
2 merge requests!48Master,!4716 refactor deprecated functions
......@@ -236,9 +236,9 @@ func (s *KeyStorageServerImpl) GetKeyId(ctx context.Context, in *api.GetKeyIdByK
keyIdResponse := &api.GetKeyIdByKeyResponse{}
stringMessage, errorsString, err := dataStorageClient.GetString(keyToKeyIdTable, in.PublicKey)
if err == nil && errorsString == "" {
keyIdResponse.KeyId = stringMessage
keyId, errorsString, err := dataStorageClient.GetString(keyToKeyIdTable, in.PublicKey)
if err == nil && errorsString == "" && keyId != "" {
keyIdResponse.KeyId = keyId
return keyIdResponse, nil
} else {
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment