Skip to content

Commit 91ca2db

Browse files
author
Ariel Kass
committed
suppress G114
1 parent 9f5f279 commit 91ca2db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/prome/exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func RunExporter(restClients map[string]*rest.FSRestClient, namespace string) {
5454

5555
log.Info("Beginning to serve on port :9100")
5656
// #nosec
57-
if err = http.ListenAndServe(":9100", nil); err != nil {
57+
if err = http.ListenAndServe(":9100", nil); err != nil { // #nosec G114 -- suppressing, but TODO in a future release, fix G114: Use of net/http serve function that has no support for setting timeouts (gosec)
5858
log.Error(err, "failed to start http server")
5959
panic(err)
6060
}

0 commit comments

Comments
 (0)