Fix golang-ci linter errors
Signed-off-by: z1cheng <imchench@gmail.com>
This commit is contained in:
parent
ab99e23bba
commit
2bb2d9ef15
10 changed files with 11 additions and 81 deletions
|
|
@ -18,11 +18,8 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand" // #nosec
|
||||
"net/http"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/collectors"
|
||||
|
||||
|
|
@ -41,8 +38,6 @@ import (
|
|||
func main() {
|
||||
klog.InitFlags(nil)
|
||||
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
|
||||
fmt.Println(version.String())
|
||||
var err error
|
||||
showVersion, conf, err := ingressflags.ParseFlags()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue