mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-04 12:01:23 +02:00
Merge pull request #647 from jszwedko/some-go-vet-changes
Fix warnings returned by `make vet`
This commit is contained in:
commit
9f530d88c6
@ -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…
x
Reference in New Issue
Block a user