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
No related branches found
No related tags found
2 merge requests!48Master,!4716 refactor deprecated functions
...@@ -236,9 +236,9 @@ func (s *KeyStorageServerImpl) GetKeyId(ctx context.Context, in *api.GetKeyIdByK ...@@ -236,9 +236,9 @@ func (s *KeyStorageServerImpl) GetKeyId(ctx context.Context, in *api.GetKeyIdByK
keyIdResponse := &api.GetKeyIdByKeyResponse{} keyIdResponse := &api.GetKeyIdByKeyResponse{}
stringMessage, errorsString, err := dataStorageClient.GetString(keyToKeyIdTable, in.PublicKey) keyId, errorsString, err := dataStorageClient.GetString(keyToKeyIdTable, in.PublicKey)
if err == nil && errorsString == "" { if err == nil && errorsString == "" && keyId != "" {
keyIdResponse.KeyId = stringMessage keyIdResponse.KeyId = keyId
return keyIdResponse, nil return keyIdResponse, nil
} else { } else {
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment