From d2bf6133f6f37279505ab8f9b1dcfc5a48b70345 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 20 Jul 2020 13:31:41 +0900 Subject: Remove trailing spaces [ci skip] --- ext/openssl/lib/openssl/buffering.rb | 2 +- ext/openssl/lib/openssl/ssl.rb | 2 +- io.c | 2 +- test/fiber/test_io.rb | 4 ++-- variable.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb index a5f4241bf4..32e04b4896 100644 --- a/ext/openssl/lib/openssl/buffering.rb +++ b/ext/openssl/lib/openssl/buffering.rb @@ -31,7 +31,7 @@ module OpenSSL::Buffering force_encoding(BINARY) end - + def << string if string.encoding == BINARY super(string) diff --git a/ext/openssl/lib/openssl/ssl.rb b/ext/openssl/lib/openssl/ssl.rb index 8554ada0bb..8e12007383 100644 --- a/ext/openssl/lib/openssl/ssl.rb +++ b/ext/openssl/lib/openssl/ssl.rb @@ -236,7 +236,7 @@ YoaOffgTf5qxiwkjnlVZQc3whgnEt9FpVMvQ9eknyeGB5KHfayAc3+hUAvI3/Cr3 def fileno to_io.fileno end - + def addr to_io.addr end diff --git a/io.c b/io.c index 75db7abfe5..2760e6c530 100644 --- a/io.c +++ b/io.c @@ -1293,7 +1293,7 @@ rb_io_wait_writable(int f) VALUE result = rb_funcall(scheduler, rb_intern("wait_writable_fd"), 1, INT2NUM(f)); return RTEST(result); } - + io_fd_check_closed(f); switch (errno) { case EINTR: diff --git a/test/fiber/test_io.rb b/test/fiber/test_io.rb index 90ac4aa5cd..270e4f35e7 100644 --- a/test/fiber/test_io.rb +++ b/test/fiber/test_io.rb @@ -39,14 +39,14 @@ class TestFiberIO < Test::Unit::TestCase assert_predicate(i, :closed?) assert_predicate(o, :closed?) end - + def test_heavy_read skip unless defined?(UNIXSocket) 16.times.map do thread = Thread.new do i, o = UNIXSocket.pair - + scheduler = Scheduler.new Thread.current.scheduler = scheduler diff --git a/variable.c b/variable.c index 5d3785b346..fe55cc9501 100644 --- a/variable.c +++ b/variable.c @@ -755,7 +755,7 @@ VALUE rb_gv_get(const char *name) { ID id = find_global_id(name); - + if (!id) { rb_warning("global variable `%s' not initialized", name); return Qnil; -- cgit v1.2.3