Skip to content

Commit

Permalink
fix 'go vet' error
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Mar 31, 2017
1 parent 70577fd commit 6b149e7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/result/justifications.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package result

import (
"github.com/opencontrol/compliance-masonry/lib/common"
"sync"

"github.com/opencontrol/compliance-masonry/lib/common"
)

// Justifications struct contains the mapping that links controls to specific components
Expand All @@ -19,7 +20,10 @@ func NewJustifications() *Justifications {
// Add methods adds a new mapping to the justification while locking
func (justifications *Justifications) Add(standardKey string, controlKey string, componentKey string, satisfies common.Satisfies) {
justifications.Lock()
newVerification := common.Verification{componentKey, satisfies}
newVerification := common.Verification{
ComponentKey: componentKey,
SatisfiesData: satisfies,
}
_, standardKeyExists := justifications.mapping[standardKey]
if !standardKeyExists {
justifications.mapping[standardKey] = make(map[string]common.Verifications)
Expand Down

0 comments on commit 6b149e7

Please sign in to comment.