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 {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user