Skip to content

Commit

Permalink
refactor: Remove redundant local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSchammo committed Nov 13, 2024
1 parent 21f2889 commit 44db6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/raytracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ constexpr tensor_size_t min_intersect_dist = 1;
const auto sphere = torch::tensor(
{nf[0].item<float>(), nf[1].item<float>(), nf[2].item<float>()});

if (const auto beam_dist = beam_length; beam_dist < nf[3].item<float>()) {
if (beam_length < nf[3].item<float>()) {
return -1;
}

Expand Down

0 comments on commit 44db6f6

Please sign in to comment.