lint fixes (#14)

* lint fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-21 14:53:21 +03:00
committed by GitHub
parent 199ff66bd4
commit c4a303190a
42 changed files with 95 additions and 178 deletions

View File

@@ -504,7 +504,7 @@ func (k *kubernetes) Read(opts ...runtime.ReadOption) ([]*runtime.Service, error
return nil, err
}
var services []*runtime.Service
services := make([]*runtime.Service, 0, len(srvs))
for _, service := range srvs {
services = append(services, service.Service)
}

View File

@@ -123,7 +123,7 @@ func (k *klog) Read() ([]runtime.Log, error) {
logParams["tailLines"] = strconv.Itoa(int(k.options.Count))
}
if k.options.Stream == true {
if k.options.Stream {
logParams["follow"] = "true"
}