Skip to content

Commit

Permalink
that's not good
Browse files Browse the repository at this point in the history
  • Loading branch information
cyber-person authored May 13, 2024
1 parent 6c9849e commit ef2b645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/script/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (what *Script) generateRisk(outerScope *common.Scope, techAsset any) (*type
}

newValue, errorEvalLiteral, evalError := expression.EvalAny(scope)
if parseError != nil {
if evalError != nil {
return nil, errorEvalLiteral, fmt.Errorf("failed to eval field value: %v", evalError)
}

Expand Down

0 comments on commit ef2b645

Please sign in to comment.