Skip to content

Commit 8aef4af

Browse files
authoredMar 27, 2018
Revert "Require real path"
1 parent 107dfbf commit 8aef4af

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

Diff for: ‎core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java

-10
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,6 @@ private FoundLibrary findFileResourceWithLoadPath(String searchName, String suff
167167
DebugLog.Resource.logTry(pathWithSuffix);
168168
FileResource resource = JRubyFile.createResourceAsFile(runtime, pathWithSuffix);
169169
if (resource.exists()) {
170-
if (resource.absolutePath() != resource.canonicalPath()) {
171-
FileResource realResource = JRubyFile.createResourceAsFile(runtime, resource.canonicalPath());
172-
if (realResource.exists()){
173-
resource = realResource;
174-
String scriptName = resolveScriptName(resource, resource.canonicalPath());
175-
String loadName = resolveLoadName(resource, searchName + suffix);
176-
return new FoundLibrary(ResourceLibrary.create(searchName, scriptName, resource), loadName);
177-
}
178-
}
179-
180170
DebugLog.Resource.logFound(pathWithSuffix);
181171
String scriptName = resolveScriptName(resource, pathWithSuffix);
182172
String loadName = resolveLoadName(resource, searchName + suffix);

0 commit comments

Comments
 (0)
Please sign in to comment.