Skip to content

Commit

Permalink
Fix warnings returned by make vet
Browse files Browse the repository at this point in the history
$GOPATH/src/github.com/hashicorp/vault/vault/policy.go:69: unreachable code
$GOPATH/src/github.com/hashicorp/vault/vault/policy_store_test.go:139: github.com/hashicorp/vault/logical.StorageEntry composite literal uses unkeyed fields
  • Loading branch information
jszwedko committed Sep 27, 2015
1 parent 70ce824 commit 3868165
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion vault/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vault/policy_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3868165

Please sign in to comment.