softprops / atty

are you or are you not a tty?
MIT License
271 stars 48 forks source link

Fix an inverted condition on MinGW #22

Closed alexcrichton closed 6 years ago

alexcrichton commented 6 years ago

I was reading over this crate a bit and found this (didn't actually run into it in the wild), but it seems like the intention here may have been to return false (aka not a tty) if GetFileInformationByHandleEx failed!

softprops commented 6 years ago

pushed these changes up in a new release on crates.io

alexcrichton commented 6 years ago

Awesome, thanks @softprops!