mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Fix few vet errors.
There are quite a few 'composite literal uses unkeyed fields' errors that I have kept out of this patch. And there's a couple where vet just seems confused. These are the easiest ones.
This commit is contained in:
@@ -96,5 +96,5 @@ func (flag *BoolFlag) Provided() bool {
|
||||
}
|
||||
|
||||
func (flag *BoolFlag) String() string {
|
||||
return fmt.Sprintf("%s", flag.Value)
|
||||
return fmt.Sprintf("%t", flag.Value)
|
||||
}
|
||||
|
@@ -393,7 +393,7 @@ func TestRequestWatch(t *testing.T) {
|
||||
if testCase.Empty {
|
||||
_, ok := <-watch.ResultChan()
|
||||
if ok {
|
||||
t.Errorf("%d: expected the watch to be empty: %#v", watch)
|
||||
t.Errorf("%d: expected the watch to be empty: %#v", i, watch)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user