Skip to content

make repo close nil-safe#760

Merged
aviator-app[bot] merged 1 commit into
masterfrom
repo-close-nil-safe
Jun 18, 2026
Merged

make repo close nil-safe#760
aviator-app[bot] merged 1 commit into
masterfrom
repo-close-nil-safe

Conversation

@tulioz

@tulioz tulioz commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

follow-up to #759, defensive nil guard on Repo.Close per review

@aviator-app

aviator-app Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator (commit e26a45a).


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

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 simplifies the deferred repository cleanup in cmd/av/main.go by delegating the nil-safety check directly to the Close method of the Repo struct in internal/git/git.go. I have no feedback to provide as there are no review comments.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@tulioz tulioz marked this pull request as ready for review June 18, 2026 19:25
@tulioz tulioz requested a review from a team as a code owner June 18, 2026 19:25
@aviator-app

aviator-app Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

✅ FlexReview Status

Common Owner: aviator-co/engineering (expert-load-balance assignment)
Owner and Assignment:

  • aviator-co/engineering (expert-load-balance assignment)
    Owned Files
    • 🔒 cmd/av/main.go
    • 🔒 internal/git/git.go

Review SLO: 7 business hours if PR size is <= 200 LOC for the first response.

@aviator-app aviator-app Bot requested a review from brain-crystal June 18, 2026 19:25
Comment thread cmd/av/main.go
startTime := time.Now()
colors.SetupBackgroundColorTypeFromEnv()
defer func() {
if cachedRepo != nil {

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.

we don't need cachedRepo null check?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah, Close() checks r == nil itself now so we don't need it here

@aviator-app aviator-app Bot merged commit e26a45a into master Jun 18, 2026
5 checks passed
@aviator-app aviator-app Bot deleted the repo-close-nil-safe branch June 18, 2026 19:35
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