Skip to content

Commit

Permalink
Fixing return value of figure_path when nothing was found
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Jul 25, 2009
1 parent 4e53cc7 commit 1785a44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rack/reloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def figure_path(file, paths)
found, stat = safe_stat(path)
return ::File.expand_path(found), stat if found
end

return false, false
end

def safe_stat(file)
Expand Down

0 comments on commit 1785a44

Please sign in to comment.