Refactor C++ code to eliminate useless return statements after error(): Difference between revisions