Permalink
Browse files

refactor

  • Loading branch information...
1 parent feae6e4 commit 430a42d8740380b2a36f0df2d068f4eb2582dbad @pjenvey pjenvey committed Mar 27, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/main/java/jnr/posix/WindowsPOSIX.java
@@ -452,11 +452,7 @@ public boolean isatty(FileDescriptor fd) {
int handle = (int)helper.gethandle(fd);
int type = ((WindowsLibC)libc()).GetFileType(handle);
- if (type == FILE_TYPE_CHAR) {
- return true;
- } else {
- return false;
- }
+ return type == FILE_TYPE_CHAR;
}
@Override

0 comments on commit 430a42d

Please sign in to comment.