mirror of
https://github.com/rancher/os.git
synced 2025-09-18 08:06:48 +00:00
make golang files to pass the latest go lints
- use constructors with named fields - fix logf statements
This commit is contained in:
committed by
Olli Janatuinen
parent
6fd46ddee4
commit
6cde287f87
@@ -32,7 +32,7 @@ func (t *HTTPClient) GetRetry(url string) ([]byte, error) {
|
||||
if val, ok := t.Resources[url]; ok {
|
||||
return []byte(val), nil
|
||||
}
|
||||
return nil, pkg.ErrNotFound{fmt.Errorf("not found: %q", url)}
|
||||
return nil, pkg.ErrNotFound{Err: fmt.Errorf("not found: %q", url)}
|
||||
}
|
||||
|
||||
func (t *HTTPClient) Get(url string) ([]byte, error) {
|
||||
|
Reference in New Issue
Block a user