Merge pull request #647 from jszwedko/some-go-vet-changes
Fix warnings returned by `make vet`
This commit is contained in:
commit
52e24fb74c
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue