mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Merge pull request #916 from Keithbsmiley/2.1
Fix nil path when not using gist cache
This commit is contained in:
commit
277dc6a558
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user