Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf (#2610)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Jul 28, 2023
1 parent 7e98db5 commit 64881af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/store/leaf/recipients.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (s *Store) UpdateExportedPublicKeys(ctx context.Context, rs []string) (bool
}

if exported && ctxutil.IsGitCommit(ctx) {
if err := s.storage.Commit(ctx, fmt.Sprintf("Updated exported Public Keys")); err != nil {
if err := s.storage.Commit(ctx, "Updated exported Public Keys"); err != nil {
switch {
case errors.Is(err, store.ErrGitNothingToCommit):
debug.Log("nothing to commit: %s", err)
Expand Down

0 comments on commit 64881af

Please sign in to comment.