Minor fix: don't initialise livecheck unless needed
This commit is contained in:
parent
1ba610707d
commit
7692098cd1
@ -183,7 +183,7 @@ class Resource
|
|||||||
# regex /foo-(\d+(?:\.\d+)+)\.tar/
|
# regex /foo-(\d+(?:\.\d+)+)\.tar/
|
||||||
# end</pre>
|
# end</pre>
|
||||||
def livecheck(&block)
|
def livecheck(&block)
|
||||||
@livecheck ||= Livecheck.new(self)
|
@livecheck ||= Livecheck.new(self) if block
|
||||||
return @livecheck unless block
|
return @livecheck unless block
|
||||||
|
|
||||||
@livecheckable = true
|
@livecheckable = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user