Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 609175545
  • Loading branch information
cushon authored and Guice Team committed Feb 22, 2024
1 parent 1ddec22 commit 60e1b4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/com/google/inject/internal/InternalFlags.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 60e1b4d

Please sign in to comment.