Skip to content

Commit

Permalink
Removing redundant LoadError raise. File.exists? seems to have proble…
Browse files Browse the repository at this point in the history
…ms when included in other gems and returns false when files are indeed present.
  • Loading branch information
TildeWill committed Apr 2, 2012
1 parent 240f002 commit e96c2ac
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/coderay/helpers/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ def make_plugin_hash
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
Expand Down

0 comments on commit e96c2ac

Please sign in to comment.