Skip to content

Commit

Permalink
Merge pull request #356 from monksy/patch-3
Browse files Browse the repository at this point in the history
Folded up the logic for the if statement
  • Loading branch information
dblock committed Aug 7, 2014
2 parents c0c96a8 + 530fcaf commit 554d7a2
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 554d7a2

Please sign in to comment.