app/models/timthumb.rb in wpscan-3.0.8 vs app/models/timthumb.rb in wpscan-3.1.0
- old
+ new
@@ -16,12 +16,10 @@
# @param [ Hash ] opts
#
# @return [ WPScan::Version, false ]
def version(opts = {})
- if @version.nil?
- @version = Finders::TimthumbVersion::Base.find(self, version_detection_opts.merge(opts))
- end
+ @version = Finders::TimthumbVersion::Base.find(self, version_detection_opts.merge(opts)) if @version.nil?
@version
end
# @return [ Array<Vulnerability> ]