Skip to content

Commit

Permalink
fix no error bag
Browse files Browse the repository at this point in the history
  • Loading branch information
DesSolo committed Feb 19, 2021
1 parent 7e34156 commit c6f2d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func getSecret(s storage.SecretStorage, key string) (string, error) {
func saveSecret(s storage.SecretStorage, message string, dues int) (string, error) {
token, err := generateUniqToken(sConfig.UniqKeyRetries)
if err != nil {
return "", nil
return "", err
}

if err := s.Save(token, message, dues); err != nil {
Expand Down

0 comments on commit c6f2d70

Please sign in to comment.