Merge pull request #916 from Keithbsmiley/2.1

Fix nil path when not using gist cache
This commit is contained in:
Brandon Mathis 2013-01-03 08:18:15 -08:00
commit 277dc6a558

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)