mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-01-14 07:08:01 -05:00
fix nil path when not using gist cache
This commit is contained in:
parent
5442c90e48
commit
fb27cae6be
@ -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