Fix linting
This commit is contained in:
parent
3ee0dee61b
commit
1a9f1b8a15
1 changed files with 2 additions and 3 deletions
|
@ -54,7 +54,7 @@ func (c *Client) Open(name, ref string) (fs.File, error) {
|
||||||
return nil, fs.ErrNotExist
|
return nil, fs.ErrNotExist
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := c.readConfig(owner, repo); err != nil {
|
if err = c.readConfig(owner, repo); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +123,6 @@ func (c *Client) getRawFileOrLFS(owner, repo, filepath, ref string) ([]byte, err
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
return res, nil
|
return res, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var bufPool = sync.Pool{
|
var bufPool = sync.Pool{
|
||||||
|
@ -178,7 +177,7 @@ func (c *Client) readConfig(owner, repo string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
viper.SetConfigType("toml")
|
viper.SetConfigType("toml")
|
||||||
viper.ReadConfig(bytes.NewBuffer(cfg))
|
viper.ReadConfig(bytes.NewBuffer(cfg)) //nolint:errcheck
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue