mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use RBOOL
This commit is contained in:
parent
5460675bbc
commit
ed2dd17294
1 changed files with 1 additions and 6 deletions
7
error.c
7
error.c
|
@ -1280,12 +1280,7 @@ check_highlight_keyword(VALUE opt, int auto_tty_detect)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NIL_P(highlight)) {
|
if (NIL_P(highlight)) {
|
||||||
if (auto_tty_detect) {
|
highlight = RBOOL(auto_tty_detect && rb_stderr_tty_p());
|
||||||
highlight = rb_stderr_tty_p() ? Qtrue : Qfalse;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
highlight = Qfalse;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return highlight;
|
return highlight;
|
||||||
|
|
Loading…
Add table
Reference in a new issue