Merge pull request #647 from jszwedko/some-go-vet-changes

Fix warnings returned by `make vet`
This commit is contained in:
Jeff Mitchell 2015-09-27 16:21:33 -04:00
commit 52e24fb74c
2 changed files with 1 additions and 2 deletions

View File

@ -66,7 +66,6 @@ func (p *PathPolicy) TakesPrecedence(other *PathPolicy) bool {
default:
panic("missing case")
}
return false
}
// Parse is used to parse the specified ACL rules into an

View File

@ -136,7 +136,7 @@ func TestPolicyStore_v1Upgrade(t *testing.T) {
// Put a V1 record
raw := `path "foo" { policy = "read" }`
ps.view.Put(&logical.StorageEntry{"old", []byte(raw)})
ps.view.Put(&logical.StorageEntry{Key: "old", Value: []byte(raw)})
// Do a read
p, err := ps.GetPolicy("old")