Skip to content

Commit

Permalink
more forgiving parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg committed Mar 5, 2019
1 parent fd75e86 commit 478b223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scanner/resource_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func ParseResource(item *ast.ObjectItem) (Resource, error) {
if len(item.Keys) == 1 {
param, err := parseParam(item)
if err != nil {
return res, err
continue
}
res.parameters = append(res.parameters, param)
}
Expand Down Expand Up @@ -195,7 +195,7 @@ func parseParam(item *ast.ObjectItem) (Parameter, error) {
if len(item.Keys) == 1 {
v, err := parseParam(item)
if err != nil {
return param, err
continue
}
childParams = append(childParams, v)
}
Expand Down

0 comments on commit 478b223

Please sign in to comment.