Skip to content

Commit

Permalink
fix error check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mads Schou-Andreasen committed Mar 4, 2021
1 parent df59f2f commit a740974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ type params struct {
func InitializeConfig(cfg interface{}, project string, envFileAction EnvFileAction) error {

grabber, err := newClient(project)
defer grabber.client.Close()

if err != nil {
return err
}
defer grabber.client.Close()

t := reflect.TypeOf(cfg)

if t.Kind() != reflect.Ptr {
Expand Down

0 comments on commit a740974

Please sign in to comment.