lib/runit-man/service_info.rb in runit-man-2.3.1 vs lib/runit-man/service_info.rb in runit-man-2.3.2

- old
+ new

@@ -284,13 +284,10 @@ def [](name) all_service_names.include?(name) ? ServiceInfo.new(name) : nil end def log_location_cache - unless @log_location_cache - @log_location_cache = LogLocationCache.new(RunitMan.logger) - end - @log_location_cache + @log_location_cache ||= LogLocationCache.new(RunitMan.logger) end def real_data_from_file(file_name) return nil unless File.readable?(file_name) if RUBY_VERSION >= '1.9'