mirror of
https://github.com/spf13/viper
synced 2024-12-23 03:57: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
|
var err error
|
||||||
|
|
||||||
if rp.SecretKeyring() != "" {
|
if rp.SecretKeyring() != "" {
|
||||||
kr, err := os.Open(rp.SecretKeyring())
|
kr, err = os.Open(rp.SecretKeyring())
|
||||||
defer kr.Close()
|
defer kr.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in a new issue