Skip to content

fix(google_drive): use errors.New for token error strings - #3138

Closed
mythic3011 wants to merge 2 commits into
OpenListTeam:mainfrom
mythic3011:fix/google-drive-vet-fmt-error
Closed

mythic3011 wants to merge 2 commits into
OpenListTeam:mainfrom
mythic3011:fix/google-drive-vet-fmt-error

Conversation

@mythic3011

Copy link
Copy Markdown

Summary

Fixes two go vet failures in drivers/google_drive/util.go caused by fmt.Errorf(e.Error).

Replaces them with errors.New(e.Error) (no formatting required). No changes to token-refresh logic.

Separate from any Google Workspace export work.

Test plan

  • go test ./drivers/google_drive/...

go vet flags fmt.Errorf(e.Error) as a non-constant format string.
Use errors.New when no formatting is required.
Copilot AI lite review requested due to automatic review settings September 24, 2026 19:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mythic3011 mythic3011 closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants