From 165860dda088a2564f439601142acb71a686ed91 Mon Sep 17 00:00:00 2001 From: Ashe Connor Date: Wed, 31 Jan 2018 10:24:15 +1100 Subject: [PATCH] Remove filesystem access --- lib/github/markup.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/github/markup.rb b/lib/github/markup.rb index a0a9ff0c..84c1e45f 100644 --- a/lib/github/markup.rb +++ b/lib/github/markup.rb @@ -40,10 +40,7 @@ def preload! end end - def render(filename, content = nil, symlink = nil) - content ||= File.read(filename) - symlink = (File.symlink?(filename) rescue false) if symlink.nil? - + def render(filename, content, symlink = false) if impl = renderer(filename, content, symlink) impl.render(filename, content) else