summaryrefslogtreecommitdiff
path: root/ext/io/console
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-05 13:52:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-05 21:26:11 +0900
commitead8d89bd7fa11601c7d6678a2b9182b01263077 (patch)
treeda598c41db89ab16c4ede670a75bcf6b7cdfda59 /ext/io/console
parent06454a9457e3c6fd819eb1ad6a9aa5b32eb083b1 (diff)
[ruby/io-console] Ignore chomp! result and return the modified string
https://github.com/ruby/io-console/commit/09e5ccc729
Diffstat (limited to 'ext/io/console')
-rw-r--r--ext/io/console/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 1fb1609..e034079 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -1562,7 +1562,7 @@ static VALUE
str_chomp(VALUE str)
{
if (!NIL_P(str)) {
- str = rb_funcallv(str, rb_intern("chomp!"), 0, 0);
+ rb_funcallv(str, rb_intern("chomp!"), 0, 0);
}
return str;
}