From 1d42f344ddff0e9764e9f5f5fa1d833236bcf2fb Mon Sep 17 00:00:00 2001 From: ttate Date: Sun, 23 May 2004 08:11:36 +0000 Subject: Merged Nakada-san's patch [ruby-core:02916]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/lib/dl/import.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ext/dl/lib') diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index c0dfb5f70..1ca715664 100644 --- a/ext/dl/lib/dl/import.rb +++ b/ext/dl/lib/dl/import.rb @@ -9,15 +9,11 @@ module DL module Internal def init_types() - if( !@types ) - @types = ::DL::Types.new - end + @types ||= ::DL::Types.new end def init_sym() - if( !@SYM ) - @SYM = {} - end + @SYM ||= {} end def [](name) -- cgit