1
0
mirror of https://github.com/strongdm/comply synced 2024-11-22 07:34:54 +00:00

Improve mockConfig (#48)

This commit is contained in:
Rodolfo Campos 2021-10-14 16:06:46 +02:00
parent 76fb5ec31a
commit f64aed0f60

View File

@ -246,10 +246,7 @@ func mockConfig() {
config.Config = func() *config.Project {
p := config.Project{}
cfgBytes, _ := ioutil.ReadFile(filepath.Join(getRootPath(), "comply.yml.example"))
err := yaml.Unmarshal(cfgBytes, &p)
if err != nil {
return nil
}
yaml.Unmarshal(cfgBytes, &p)
return &p
}
}