Skip to content

Clone options#259

Merged
nhooyr merged 1 commit into
coder:devfrom
abursavich:options
Sep 24, 2020
Merged

Clone options#259
nhooyr merged 1 commit into
coder:devfrom
abursavich:options

Conversation

@abursavich

Copy link
Copy Markdown
Contributor

opts = &*opts is a no-op.

See: https://staticcheck.io/docs/checks#SA4001

@abursavich abursavich requested a review from nhooyr as a code owner September 9, 2020 07:08
@nhooyr

nhooyr commented Sep 24, 2020

Copy link
Copy Markdown
Contributor

Nice catch! Can confirm. I tested it at the time and thought it worked but I guess I got confused.

@nhooyr nhooyr 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.

Thanks for contributing @abursavich!

@nhooyr nhooyr merged commit fdc4079 into coder:dev Sep 24, 2020
@icholy

icholy commented Oct 1, 2020

Copy link
Copy Markdown

There are still 2 more instances of this.

$ git grep "\&\*
dial.go:        copts = &*copts
internal/test/wstest/pipe.go:   dialOpts = &*dialOpts

@nhooyr

nhooyr commented Oct 2, 2020

Copy link
Copy Markdown
Contributor

Good eye @icholy, I've made note of those in my TODO and will have a PR up to fix shortly.

nhooyr added a commit that referenced this pull request Jan 9, 2021
Thank you @icholy for identifying these in #259 (comment)
nhooyr added a commit that referenced this pull request Jan 9, 2021
Thank you @icholy for identifying these in
#259 (comment)
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.

3 participants