Skip to content

chore: reformat llm package#1531

Merged
looplj merged 1 commit into
unstablefrom
dev-tmp
Apr 29, 2026
Merged

chore: reformat llm package#1531
looplj merged 1 commit into
unstablefrom
dev-tmp

Conversation

@looplj

@looplj looplj commented Apr 29, 2026

Copy link
Copy Markdown
Owner

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request implements a codebase-wide refactoring to improve formatting and consistency, adopting modern Go practices like 'any' and the 'maps' package. Critical compilation errors were identified in the test suites for DeviceFlowProvider and antigravity versioning, where 'sync.WaitGroup' is incorrectly used with a non-existent 'Go' method.

Comment on lines +909 to +911
wg.Go(func() {
_ = provider.GetCredentials()
}()
})

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.

critical

The sync.WaitGroup type does not have a Go method. This change will cause a compilation error. The previous implementation using wg.Add(1) and a goroutine with defer wg.Done() is the correct way to use a standard Go wait group.

		wg.Add(1)

		go func() {
			defer wg.Done()
			_ = provider.GetCredentials()
		}()

Comment on lines +144 to +146
wg.Go(func() {
initOnce.Do(func() { f.init(context.Background()) })
}()
})

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.

critical

The sync.WaitGroup type (declared on line 142) does not have a Go method. This refactoring will break the build. Please revert to the standard wg.Add(1) and go func() { defer wg.Done(); ... }() pattern.

		wg.Add(1)
		go func() {
			defer wg.Done()
			initOnce.Do(func() { f.init(context.Background()) })
		}()

@looplj looplj merged commit 9acca6b into unstable Apr 29, 2026
5 checks passed
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.

1 participant