Skip to content

Commit 1a125ef

Browse files
committed
fix(gmail): avoid err shadow
1 parent 2086330 commit 1a125ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/cmd/gmail_attachment.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ func (c *GmailAttachmentCmd) Run(ctx context.Context, flags *RootFlags) error {
4949
}
5050

5151
// Avoid touching auth/keyring and avoid writing files in dry-run mode.
52-
if err := dryRunExit(ctx, flags, "gmail.attachment.download", map[string]any{
52+
if dryRunErr := dryRunExit(ctx, flags, "gmail.attachment.download", map[string]any{
5353
"message_id": messageID,
5454
"attachment_id": attachmentID,
5555
"path": destPath,
56-
}); err != nil {
57-
return err
56+
}); dryRunErr != nil {
57+
return dryRunErr
5858
}
5959

6060
account, err := requireAccount(flags)

0 commit comments

Comments
 (0)