From 60e1b4d90c70bd2ac324a03977dbc2d55fc8bedd Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Wed, 21 Feb 2024 17:16:11 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 609175545 --- core/src/com/google/inject/internal/InternalFlags.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/google/inject/internal/InternalFlags.java b/core/src/com/google/inject/internal/InternalFlags.java index c6de91baa6..566eaac8f3 100644 --- a/core/src/com/google/inject/internal/InternalFlags.java +++ b/core/src/com/google/inject/internal/InternalFlags.java @@ -122,7 +122,8 @@ public enum ColorizeOption { AUTO { @Override boolean enabled() { - return System.console() != null && System.getenv("TERM") != null; + boolean systemConsoleIsTerminal = System.console() != null; + return systemConsoleIsTerminal && System.getenv("TERM") != null; } }, ON {