Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Apr 9, 2024
1 parent d80f807 commit 533e48a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/websockets.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ func (s *websocketsServer) Start() {
var err error
/* #nosec G114 -- http functions have no support for timeouts */
if s.certFile == "" || s.keyFile == "" {
err = http.ListenAndServe(s.wsAddr, ws)
err = http.ListenAndServe(s.wsAddr, ws) /* #nosec G114 -- http functions have no support for timeouts */
} else {
err = http.ListenAndServeTLS(s.wsAddr, s.certFile, s.keyFile, ws)
err = http.ListenAndServeTLS(s.wsAddr, s.certFile, s.keyFile, ws) /* #nosec G114 -- http functions have no support for timeouts */
}

if err != nil {
Expand Down

0 comments on commit 533e48a

Please sign in to comment.