Remove some extra comments

This commit is contained in:
Brian Kassouf 2017-01-20 11:32:58 -08:00
parent e1424c631e
commit df800198e0
1 changed files with 2 additions and 2 deletions

View File

@ -119,12 +119,12 @@ func parsePaths(result *Policy, list *ast.ObjectList) error {
for _, item := range list.Items {
key := "path"
if len(item.Keys) > 0 {
key = item.Keys[0].Token.Value().(string) // "secret/foo"
key = item.Keys[0].Token.Value().(string)
}
valid := []string{
"policy",
"capabilities",
"permissions", // added here to validate
"permissions",
}
if err := checkHCLKeys(item.Val, valid); err != nil {
return multierror.Prefix(err, fmt.Sprintf("path %q:", key))