Skip to content

Commit

Permalink
Disable err checks
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK committed Feb 29, 2024
1 parent 3370e50 commit b3c663f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contrib/dendrite-demo-i2p/main_i2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ func SetupAndServeHTTPS(
if err != nil {
logrus.WithError(err).Fatal("failed to create garlic")
}
defer garlic.Close()
defer garlic.Close() // nolint: errcheck
listener, err := garlic.ListenTLS()
if err != nil {
logrus.WithError(err).Fatal("failed to serve HTTPS")
}
defer listener.Close()
defer listener.Close() // nolint: errcheck

externalHTTPSAddr := config.ServerAddress{}
https, err := config.HTTPAddress("https://" + listener.Addr().String())
Expand Down
6 changes: 3 additions & 3 deletions contrib/dendrite-demo-tor/main_tor.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func Dial(network, addr string) (net.Conn, error) {
return nil, terr
}
if (tderr != nil) || (tdialer == nil) {
return nil, tderr
return nil, tderr
}
if network == "unix" {
return net.Dial(network, addr)
Expand Down Expand Up @@ -87,12 +87,12 @@ func SetupAndServeHTTPS(
if err != nil {
logrus.WithError(err).Fatal("failed to create onion")
}
defer onion.Close()
defer onion.Close() // nolint: errcheck
listener, err := onion.ListenTLS()
if err != nil {
logrus.WithError(err).Fatal("failed to serve HTTPS")
}
defer listener.Close()
defer listener.Close() // nolint: errcheck

externalHTTPSAddr := config.ServerAddress{}
https, err := config.HTTPAddress("https://" + listener.Addr().String())
Expand Down

0 comments on commit b3c663f

Please sign in to comment.