Skip to content

Commit 2cf3599

Browse files
committed
throw operator is an exit point from the function. Next return is unnecessary
1 parent 6fafc25 commit 2cf3599

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/protonect/src/opencl_depth_packet_processor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ class OpenCLDepthPacketProcessorImpl
508508
{
509509
std::cerr << OUT_NAME("run") "ERROR: " << err.what() << " (" << err.err() << ")" << std::endl;
510510
throw err;
511-
return;
512511
}
513512
}
514513

0 commit comments

Comments
 (0)