Skip to content

Commit

Permalink
Folded up the logic for the if statement
Browse files Browse the repository at this point in the history
This is a minor code style fix for the method "FAILED" [removed 3 lines and simplified the statement]
  • Loading branch information
monksy committed Aug 5, 2014
1 parent da8eec6 commit 530fcaf
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ public static boolean FAILED(HRESULT hr) {
* @return true, if successful
*/
public static boolean FAILED(int hr) {
if (hr != S_OK)
return true;
else
return false;
return (hr != S_OK);
}

/**
Expand Down

0 comments on commit 530fcaf

Please sign in to comment.