diff --git a/fixtures/policies/invalid-access.md b/fixtures/policies/invalid-access.md index 9207c0b..0f4d054 100644 --- a/fixtures/policies/invalid-access.md +++ b/fixtures/policies/invalid-access.md @@ -53,4 +53,3 @@ a. *When an employee changes roles within the organization:* a. *Review of accounts and permissions:* i. Each month, IT and HR will review accounts and permission levels for accuracy. - diff --git a/internal/model/fs.go b/internal/model/fs.go index 529f745..e8265ab 100644 --- a/internal/model/fs.go +++ b/internal/model/fs.go @@ -83,7 +83,6 @@ func ReadStandards() ([]*Standard, error) { return nil, errors.Wrap(err, "unable to read "+f.FullPath) } - yaml.Unmarshal(sBytes, &s) err = yaml.Unmarshal(sBytes, &s) if err != nil { return nil, errors.Wrap(err, "unable to parse "+f.FullPath) @@ -127,6 +126,7 @@ func ReadNarratives() ([]*Document, error) { func ReadProcedures() ([]*Procedure, error) { var procedures []*Procedure files, err := path.Procedures() + if err != nil { return nil, errors.Wrap(err, "unable to enumerate paths") }