Skip to content

Commit ce38cba

Browse files
nobuhsbt
authored andcommitted
Merge blocks for the same condition
1 parent a1d62a3 commit ce38cba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/io/console/test_io_console.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,7 @@ def test_ttyname
543543
File.open(ttyname) {|f| assert_predicate(f, :tty?)}
544544
end
545545
end
546-
end
547546

548-
defined?(IO.console) and TestIO_Console.class_eval do
549547
case
550548
when Process.respond_to?(:daemon)
551549
noctty = [EnvUtil.rubybin, "-e", "Process.daemon(true)"]

0 commit comments

Comments
 (0)