fix nil path when not using gist cache

This commit is contained in:
Keith Smiley 2013-01-03 08:45:59 -05:00
parent 5442c90e48
commit fb27cae6be

View File

@ -62,7 +62,7 @@ module HighlightCode
end
def read_cache (path)
code = File.exist?(path) ? File.read(path) : nil
code = File.exist?(path) ? File.read(path) : nil unless path.nil?
end
def get_cache_path (dir, name, str)