lib/splash/backends/file.rb in prometheus-splash-0.8.3 vs lib/splash/backends/file.rb in prometheus-splash-0.8.4

- old
+ new

@@ -52,10 +52,10 @@ # delete a specific record # @param [Hash] options # @option options [Symbol] :key the name of the record # @return [Boolean] status of the operation def del(options) - ::File.unlink("#{@path}/#{suffix_trace(options[:key])}") if File.exist?("#{@path}/#{suffix_trace(options[:key])}") + ::File.unlink("#{@path}/#{suffix_trace(options[:key])}") if ::File.exist?("#{@path}/#{suffix_trace(options[:key])}") end # verifiy a specific record existance # @param [Hash] options # @option options [Symbol] :key the name of the record