Skip to content

Commit 554d7a2

Browse files
committed
Merge pull request #356 from monksy/patch-3
Folded up the logic for the if statement
2 parents c0c96a8 + 530fcaf commit 554d7a2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

contrib/platform/src/com/sun/jna/platform/win32/COM/COMUtils.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ public static boolean FAILED(HRESULT hr) {
8383
* @return true, if successful
8484
*/
8585
public static boolean FAILED(int hr) {
86-
if (hr != S_OK)
87-
return true;
88-
else
89-
return false;
86+
return (hr != S_OK);
9087
}
9188

9289
/**

0 commit comments

Comments
 (0)