Fix linting

This commit is contained in:
Wim 2022-11-01 21:51:03 +01:00
parent 3ee0dee61b
commit 1a9f1b8a15
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -54,7 +54,7 @@ func (c *Client) Open(name, ref string) (fs.File, error) {
return nil, fs.ErrNotExist
}
if err := c.readConfig(owner, repo); err != nil {
if err = c.readConfig(owner, repo); err != nil {
return nil, err
}
@ -123,7 +123,6 @@ func (c *Client) getRawFileOrLFS(owner, repo, filepath, ref string) ([]byte, err
defer resp.Body.Close()
return res, nil
}
var bufPool = sync.Pool{
@ -178,7 +177,7 @@ func (c *Client) readConfig(owner, repo string) error {
}
viper.SetConfigType("toml")
viper.ReadConfig(bytes.NewBuffer(cfg))
viper.ReadConfig(bytes.NewBuffer(cfg)) //nolint:errcheck
return nil
}