mirror of
https://github.com/strongdm/comply
synced 2024-11-05 23:45:25 +00:00
Improve mockConfig (#48)
This commit is contained in:
parent
76fb5ec31a
commit
f64aed0f60
@ -246,10 +246,7 @@ func mockConfig() {
|
|||||||
config.Config = func() *config.Project {
|
config.Config = func() *config.Project {
|
||||||
p := config.Project{}
|
p := config.Project{}
|
||||||
cfgBytes, _ := ioutil.ReadFile(filepath.Join(getRootPath(), "comply.yml.example"))
|
cfgBytes, _ := ioutil.ReadFile(filepath.Join(getRootPath(), "comply.yml.example"))
|
||||||
err := yaml.Unmarshal(cfgBytes, &p)
|
yaml.Unmarshal(cfgBytes, &p)
|
||||||
if err != nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return &p
|
return &p
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user