Skip to content

Conversation

@estensen
Copy link
Contributor

@estensen estensen commented Apr 1, 2025

compression.go:51:4: QF1008: could remove embedded field "Writer" from selector (staticcheck)
        z.Writer.Reset(w)
          ^

When a type is embedded like this, its method is promoted to the containing type.

type writer struct {
	*gzip.Writer
	pool *sync.Pool
}

@estensen estensen requested a review from mempirate April 1, 2025 10:32
@estensen estensen mentioned this pull request Apr 1, 2025
@estensen estensen merged commit f7a01c3 into main Apr 1, 2025
1 check passed
@estensen estensen deleted the reset branch April 1, 2025 10:57
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