Skip to content

Commit

Permalink
Merge pull request #87 from robert-zaremba/patch-1
Browse files Browse the repository at this point in the history
fix(kwallet): empty wallet key query
  • Loading branch information
mtibben committed Oct 11, 2021
2 parents 74483f7 + ef00f8a commit 50eaec8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kwallet.go
Expand Up @@ -91,6 +91,10 @@ func (k *kwalletKeyring) Get(key string) (Item, error) {
if err != nil {
return Item{}, err
}
if len(data) == 0 {
return Item{}, ErrKeyNotFound
}


item := Item{}
err = json.Unmarshal(data, &item)
Expand Down

0 comments on commit 50eaec8

Please sign in to comment.