diff --git a/src/read/user_interaction.rs b/src/read/user_interaction.rs index 1f5e106d..e6eab103 100644 --- a/src/read/user_interaction.rs +++ b/src/read/user_interaction.rs @@ -38,12 +38,6 @@ pub(crate) fn get_key() -> KeyEvent { } fn supported_terminal() -> bool { - #[cfg(windows)] - let windows_os = true; - - #[cfg(not(windows))] - let windows_os = false; - // If OS is Windows and stdin is not a tty, it's either a pipe or an unsupported terminal configuration. - !windows_os || std::io::stdin().is_tty() + cfg!(not(windows)) || std::io::stdin().is_tty() }