Commit 569bad16 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish

parent b4c901ca
...@@ -151,7 +151,7 @@ public abstract class AnsiOutput { ...@@ -151,7 +151,7 @@ public abstract class AnsiOutput {
if ((consoleAvailable == null) && (System.console() == null)) { if ((consoleAvailable == null) && (System.console() == null)) {
return false; return false;
} }
return !(OPERATING_SYSTEM_NAME.indexOf("win") >= 0); return !(OPERATING_SYSTEM_NAME.contains("win"));
} }
catch (Throwable ex) { catch (Throwable ex) {
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment