Skip to content

Commit

Permalink
return err
Browse files Browse the repository at this point in the history
  • Loading branch information
asoliman92 authored Dec 19, 2024
1 parent 35d35d4 commit a85f1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execute/exectypes/type_optimizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (op ObservationOptimizer) TruncateObservation(observation Observation) (Obs
// That is because using encoded sizes is not 100% accurate and there are some missing bytes in the calculation.
encodedObs, err = obs.Encode()
if err != nil {
return Observation{}, nil
return Observation{}, err
}
encodedObsSize = len(encodedObs)
}
Expand Down

0 comments on commit a85f1c4

Please sign in to comment.