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/
|
||||
# end</pre>
|
||||
def livecheck(&block)
|
||||
@livecheck ||= Livecheck.new(self)
|
||||
@livecheck ||= Livecheck.new(self) if block
|
||||
return @livecheck unless block
|
||||
|
||||
@livecheckable = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user