Suppress uninitialized instance variable warnings [ci skip]
This commit is contained in:
parent
55f496c89b
commit
e593d5b31a
@ -305,20 +305,18 @@ class VCS
|
|||||||
end
|
end
|
||||||
|
|
||||||
def url
|
def url
|
||||||
unless @url
|
@url ||= begin
|
||||||
url = get_info[/<root>(.*)<\/root>/, 1]
|
url = get_info[/<root>(.*)<\/root>/, 1]
|
||||||
@url = URI.parse(url+"/") if url
|
@url = URI.parse(url+"/") if url
|
||||||
end
|
end
|
||||||
@url
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def wcroot
|
def wcroot
|
||||||
unless @wcroot
|
@wcroot ||= begin
|
||||||
info = get_info
|
info = get_info
|
||||||
@wcroot = info[/<wcroot-abspath>(.*)<\/wcroot-abspath>/, 1]
|
@wcroot = info[/<wcroot-abspath>(.*)<\/wcroot-abspath>/, 1]
|
||||||
@wcroot ||= self.class.search_root(@srcdir)
|
@wcroot ||= self.class.search_root(@srcdir)
|
||||||
end
|
end
|
||||||
@wcroot
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def branch(name)
|
def branch(name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user