Skip to content

Commit

Permalink
Add guard for details
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Conner <[email protected]>
  • Loading branch information
knrc committed Apr 25, 2024
1 parent 40c4c9c commit fc5e56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/evals.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func generateEvalArrayResults(responses []evalResponses) [][]*EvalResult {
func calculateLazyEvalCost(lazyEvals lazyEvalMap) uint64 {
var cost uint64
for _, lazyEval := range lazyEvals {
if lazyEval.val != nil {
if lazyEval.val != nil && lazyEval.val.details != nil {
cost += *lazyEval.val.details.ActualCost()
}
}
Expand Down

0 comments on commit fc5e56c

Please sign in to comment.