Skip to content

Commit a4693f1

Browse files
fix(lint): resolve shadow error in drive upload convert
Rename err to convertErr to avoid shadowing the err variable declared earlier in the function. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 897a12c commit a4693f1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/cmd/drive.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,9 @@ func (c *DriveUploadCmd) Run(ctx context.Context, flags *RootFlags) error {
364364
meta.Parents = []string{parent}
365365
}
366366
if c.Convert {
367-
convertMimeType, err := driveUploadConvertMimeType(localPath)
368-
if err != nil {
369-
return err
367+
convertMimeType, convertErr := driveUploadConvertMimeType(localPath)
368+
if convertErr != nil {
369+
return convertErr
370370
}
371371
meta.MimeType = convertMimeType
372372
}

0 commit comments

Comments
 (0)