Skip to content

Commit

Permalink
[Core] Avoid status copy (#47562)
Browse files Browse the repository at this point in the history
Signed-off-by: dentiny <dentinyhao@gmail.com>
  • Loading branch information
dentiny authored Sep 16, 2024
1 parent ff4bd6b commit f9e8e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ray/common/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class error_code;
// Return the given status if it is not OK.
#define RAY_RETURN_NOT_OK(s) \
do { \
::ray::Status _s = (s); \
const ::ray::Status &_s = (s); \
if (RAY_PREDICT_FALSE(!_s.ok())) { \
return _s; \
} \
Expand Down

0 comments on commit f9e8e97

Please sign in to comment.