From 8dc5fe6e89cb86bd92628b5f34ba5f549a241c2d Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 9 Oct 2019 11:34:03 -0400 Subject: [PATCH] Simplify rb_define_module_id --- class.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/class.c b/class.c index 09afc720e3..010faed3eb 100644 --- a/class.c +++ b/class.c @@ -768,11 +768,7 @@ rb_module_new(void) VALUE rb_define_module_id(ID id) { - VALUE mdl; - - mdl = rb_module_new(); - - return mdl; + return rb_module_new(); } VALUE