fix: golangci lint code

This commit is contained in:
zhuyasen
2025-11-15 20:39:18 +08:00
parent 64e4ffbbe0
commit fd3c29bb68
2 changed files with 4 additions and 5 deletions

3
.github/RELEASE.md vendored
View File

@@ -3,3 +3,6 @@
1. Improved SSE service shutdown process — now automatically sends a close event to clients upon exit. [#136](https://github.com/go-dev-frame/sponge/issues/136)
2. Added gRPC performance testing support to `perftest`, expanding its benchmarking capabilities.
fix PostgreSQL's timestamptz type support [#141](https://github.com/go-dev-frame/sponge/issues/141)

View File

@@ -194,11 +194,7 @@ func (c *TLSSelfSignedConfig) createCert() error {
if err != nil {
return err
}
if err = pem.Encode(keyOut, &pem.Block{Type: "EC PRIVATE KEY", Bytes: b}); err != nil {
return err
}
return nil
return pem.Encode(keyOut, &pem.Block{Type: "EC PRIVATE KEY", Bytes: b})
}
func (c *TLSSelfSignedConfig) Run(server *http.Server) error {