Skip to content

Commit fd3c29b

Browse files
committed
fix: golangci lint code
1 parent 64e4ffb commit fd3c29b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/RELEASE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33

44
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)
55
2. Added gRPC performance testing support to `perftest`, expanding its benchmarking capabilities.
6+
7+
fix PostgreSQL's timestamptz type support [#141](https://github.com/go-dev-frame/sponge/issues/141)
8+

pkg/httpsrv/tls_self_signed.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,7 @@ func (c *TLSSelfSignedConfig) createCert() error {
194194
if err != nil {
195195
return err
196196
}
197-
if err = pem.Encode(keyOut, &pem.Block{Type: "EC PRIVATE KEY", Bytes: b}); err != nil {
198-
return err
199-
}
200-
201-
return nil
197+
return pem.Encode(keyOut, &pem.Block{Type: "EC PRIVATE KEY", Bytes: b})
202198
}
203199

204200
func (c *TLSSelfSignedConfig) Run(server *http.Server) error {

0 commit comments

Comments
 (0)