Skip to content

Commit

Permalink
initialze bins map if it's nil (#202)
Browse files Browse the repository at this point in the history
fixes #201

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
  • Loading branch information
marcosnils authored Jun 17, 2024
1 parent 24eae61 commit 00ad407
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ func CheckAndLoad() error {
}

}

if cfg.Bins == nil {
cfg.Bins = map[string]*Binary{}
}

log.Debugf("Download path set to %s", cfg.DefaultPath)
return nil
}
Expand Down

0 comments on commit 00ad407

Please sign in to comment.