Skip to content

Commit 85fe699

Browse files
committed
Remove superfluous else
1 parent 53490fb commit 85fe699

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exporter.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ func main() {
434434
}
435435
log.Printf("NGINX Prometheus Exporter has successfully started using https")
436436
log.Fatal(srv.ServeTLS(listener, *sslServerCert, *sslServerKey))
437-
} else {
438-
log.Printf("NGINX Prometheus Exporter has successfully started")
439-
log.Fatal(srv.Serve(listener))
440437
}
438+
439+
log.Printf("NGINX Prometheus Exporter has successfully started")
440+
log.Fatal(srv.Serve(listener))
441441
}
442442

443443
type userAgentRoundTripper struct {

0 commit comments

Comments
 (0)