Skip to content

Commit

Permalink
Revert "Require real path"
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Mar 27, 2018
1 parent 107dfbf commit 8aef4af
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,6 @@ private FoundLibrary findFileResourceWithLoadPath(String searchName, String suff
DebugLog.Resource.logTry(pathWithSuffix);
FileResource resource = JRubyFile.createResourceAsFile(runtime, pathWithSuffix);
if (resource.exists()) {
if (resource.absolutePath() != resource.canonicalPath()) {
FileResource realResource = JRubyFile.createResourceAsFile(runtime, resource.canonicalPath());
if (realResource.exists()){
resource = realResource;
String scriptName = resolveScriptName(resource, resource.canonicalPath());
String loadName = resolveLoadName(resource, searchName + suffix);
return new FoundLibrary(ResourceLibrary.create(searchName, scriptName, resource), loadName);
}
}

DebugLog.Resource.logFound(pathWithSuffix);
String scriptName = resolveScriptName(resource, pathWithSuffix);
String loadName = resolveLoadName(resource, searchName + suffix);
Expand Down

0 comments on commit 8aef4af

Please sign in to comment.