Skip to content

Commit

Permalink
Re-re-restore workaround for pulyaevskiy/node-interop#93
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Apr 14, 2023
1 parent c3b373e commit 3de4639
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/src/io/node.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,12 @@ final Stderr stderr = () {
return Stderr(stderr_);
}();

bool get hasTerminal => process?.stdout.isTTY == true;
/// Ignore `invalid_null_aware_operator` error, because [process.stdout.isTTY]
/// from `node_interop` declares `isTTY` as always non-nullably available, but
/// in practice it's undefined if stdout isn't a TTY.
/// See: https://github.com/pulyaevskiy/node-interop/issues/93
// ignore: invalid_null_aware_operator
bool get hasTerminal => process?.stdout?.isTTY == true;

bool get isWindows => process?.platform == 'win32';

Expand Down

0 comments on commit 3de4639

Please sign in to comment.