Skip to content

Commit acb288e

Browse files
Merge pull request #1148 from DavidHurta/resolve-lint-issues
OTA-209: Resolve lint issues
2 parents a5cd0e0 + 3ec67cf commit acb288e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

cmd/start.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ package main
22

33
import (
44
"context"
5-
"math/rand"
6-
"time"
7-
85
"github.com/spf13/cobra"
96
"k8s.io/klog/v2"
107

@@ -22,9 +19,6 @@ func init() {
2219
// To help debugging, immediately log version
2320
klog.Info(version.String)
2421

25-
//Setting seed for all the calls to rand methods in the code
26-
rand.Seed(time.Now().UnixNano())
27-
2822
if err := opts.Run(context.Background()); err != nil {
2923
klog.Fatalf("error: %v", err)
3024
}

lib/resourcemerge/batch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func TestEnsureJob_JobSpec_Selector(t *testing.T) {
414414
switch r := recover(); r {
415415
case nil:
416416
if test.expectedPanic {
417-
t.Errorf(test.name + " should have panicked!")
417+
t.Errorf("%s should have panicked!", test.name)
418418
}
419419
default:
420420
if !test.expectedPanic {

0 commit comments

Comments
 (0)