mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Fixing error assignment
This commit is contained in:
parent
80ab6657f9
commit
553a030220
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ func getConfigManager(rp viper.RemoteProvider) (crypt.ConfigManager, error) {
|
|||
var err error
|
||||
|
||||
if rp.SecretKeyring() != "" {
|
||||
kr, err := os.Open(rp.SecretKeyring())
|
||||
kr, err = os.Open(rp.SecretKeyring())
|
||||
defer kr.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue