Skip to content

cmd/fetch_repo: fix dropped error#2298

Merged
tyler-french merged 1 commit intobazel-contrib:masterfrom
alrs:copy-tree-err
Mar 2, 2026
Merged

cmd/fetch_repo: fix dropped error#2298
tyler-french merged 1 commit intobazel-contrib:masterfrom
alrs:copy-tree-err

Conversation

@alrs
Copy link
Copy Markdown
Contributor

@alrs alrs commented Mar 2, 2026

What type of PR is this?

Bug fix

What package or component does this PR mostly affect?

/cmd/fetch_repo/

What does this PR do? Why is it needed?

This fixes an err variable that was dropped and unhandled.

Which issues(s) does this PR fix?

Fixes #2297.

Bug fix

**What package or component does this PR mostly affect?**

/cmd/fetch_repo/

**What does this PR do? Why is it needed?**

This fixes an err variable that was dropped and unhandled.

**Which issues(s) does this PR fix?**

Fixes bazel-contrib#2297.

Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
Copy link
Copy Markdown
Contributor

@tyler-french tyler-french left a comment

Choose a reason for hiding this comment

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

In the future, it seems like it might be cleaner to just return err at the end of each case

@tyler-french tyler-french merged commit a1055c5 into bazel-contrib:master Mar 2, 2026
15 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.

Dropped Error Variable

2 participants