ruby-changes:57395
From: Nobuyoshi <ko1@a...>
Date: Fri, 30 Aug 2019 11:24:36 +0900 (JST)
Subject: [ruby-changes:57395] Nobuyoshi Nakada: e593d5b31a (master): Suppress uninitialized instance variable warnings [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=e593d5b31a From e593d5b31a13c59f9af07a2a6012c09bae7477d1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 30 Aug 2019 11:18:23 +0900 Subject: Suppress uninitialized instance variable warnings [ci skip] diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index e38db07..ca5c471 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -305,20 +305,18 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L305 end def url - unless @url + @url ||= begin url = get_info[/<root>(.*)<\/root>/, 1] @url = URI.parse(url+"/") if url end - @url end def wcroot - unless @wcroot + @wcroot ||= begin info = get_info @wcroot = info[/<wcroot-abspath>(.*)<\/wcroot-abspath>/, 1] @wcroot ||= self.class.search_root(@srcdir) end - @wcroot end def branch(name) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/