Skip to content

Enable ineffassign linter#2472

Merged
jackc merged 1 commit intojackc:masterfrom
guerinoni:ineffassign
Jan 24, 2026
Merged

Enable ineffassign linter#2472
jackc merged 1 commit intojackc:masterfrom
guerinoni:ineffassign

Conversation

@guerinoni
Copy link
Copy Markdown
Contributor

This also fixes all warnings about it.

Comment thread pgconn/config.go
}
decryptedKey, decryptedError = x509.DecryptPEMBlock(block, []byte(sslpassword))
// Should we also provide warning for PKCS#1 needed?
if decryptedError != 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.

not going to work

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.

Ok i ignored this case to avoid weird possible bugs

This also fixes all warnings about it.
@jackc jackc merged commit affeba1 into jackc:master Jan 24, 2026
14 checks passed
@guerinoni guerinoni deleted the ineffassign branch January 24, 2026 14:41
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