Created
April 23, 2018 12:17
-
-
Save xiaok/d644080e2735bfe7ad7a503ef366ace6 to your computer and use it in GitHub Desktop.
test.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function() | |
{ | |
HRESULT error = S_OK; | |
if(SUCCEEDED(Operation1())) | |
{ | |
if(SUCCEEDED(Operation2())) | |
{ | |
if(SUCCEEDED(Operation3())) | |
{ | |
if(SUCCEEDED(Operation4())) | |
{ | |
} | |
else | |
{ | |
error = OPERATION4FAILED; | |
} | |
} | |
else | |
{ | |
error = OPERATION3FAILED; | |
} | |
} | |
else | |
{ | |
error = OPERATION2FAILED; | |
} | |
} | |
else | |
{ | |
error = OPERATION1FAILED; | |
} | |
return error; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment