From e96c2acce3cdccc540419e21960e5c0aa18b5548 Mon Sep 17 00:00:00 2001 From: Will Read Date: Sun, 1 Apr 2012 20:25:25 -0700 Subject: Removing redundant LoadError raise. File.exists? seems to have problems when included in other gems and returns false when files are indeed present. --- lib/coderay/helpers/plugin.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/coderay/helpers/plugin.rb') diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index 06c1233..137c1ab 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -176,7 +176,6 @@ module CodeRay id = validate_id(plugin_id) path = path_to id begin - raise LoadError, "#{path} not found" unless File.exist? path require path rescue LoadError => boom if @plugin_map_loaded -- cgit v1.2.1