Skip to content

Commit

Permalink
evaluate return value directly (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsaiYusuke committed Feb 10, 2023
1 parent 235026e commit b332223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntax_query_param_current_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (e *syntaxQueryParamCurrentRoot) compute(

var hasValue bool
for index := range currentList {
if err := e.param.retrieve(root, currentList[index], &containers[index]); err != nil {
if e.param.retrieve(root, currentList[index], &containers[index]) != nil {
result[index] = emptyEntity
continue
}
Expand Down
2 changes: 1 addition & 1 deletion syntax_query_param_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func (e *syntaxQueryParamRoot) compute(

values := bufferContainer{}

if err := e.param.retrieve(root, root, &values); err != nil {
if e.param.retrieve(root, root, &values) != nil {
return emptyList
}

Expand Down

0 comments on commit b332223

Please sign in to comment.