Easy way to re-write multiple return statements
<p>I have some code that's written like so:</p>

<pre><code>private double function1()
{
    double result2 = function2();
    if (result2  &lt; 0) { return result2; }

    double result3 = function3();
    if (result3  &lt; 0) { return result3; }

    return 0;
}
</code></pre>

<p>I need to re-write it such that it has only one return statement.  Is there an easy way to do this?  It strikes me as inefficient to begin with that the same if construct is used twice.  How can this inefficiency be cleaned up?</p>
